Enum swc_ecma_visit::fields::JSXFragmentField
source · pub enum JSXFragmentField {
Span,
Opening,
Children(usize),
Closing,
}
Expand description
This enum represents fields of JSXFragmentField
Variants§
Span
This represents span
Opening
This represents opening
Children(usize)
This represents children
Closing
This represents closing
Implementations§
Trait Implementations§
source§impl Clone for JSXFragmentField
impl Clone for JSXFragmentField
source§fn clone(&self) -> JSXFragmentField
fn clone(&self) -> JSXFragmentField
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JSXFragmentField
impl Debug for JSXFragmentField
source§impl<'de> Deserialize<'de> for JSXFragmentField
impl<'de> Deserialize<'de> for JSXFragmentField
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for JSXFragmentField
impl Hash for JSXFragmentField
source§impl Ord for JSXFragmentField
impl Ord for JSXFragmentField
source§fn cmp(&self, other: &JSXFragmentField) -> Ordering
fn cmp(&self, other: &JSXFragmentField) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<JSXFragmentField> for JSXFragmentField
impl PartialEq<JSXFragmentField> for JSXFragmentField
source§fn eq(&self, other: &JSXFragmentField) -> bool
fn eq(&self, other: &JSXFragmentField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<JSXFragmentField> for JSXFragmentField
impl PartialOrd<JSXFragmentField> for JSXFragmentField
source§fn partial_cmp(&self, other: &JSXFragmentField) -> Option<Ordering>
fn partial_cmp(&self, other: &JSXFragmentField) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more