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 for JSXFragmentField
impl PartialEq 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 for JSXFragmentField
impl PartialOrd 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 moresource§impl Serialize for JSXFragmentField
impl Serialize for JSXFragmentField
impl Copy for JSXFragmentField
impl Eq for JSXFragmentField
impl StructuralPartialEq for JSXFragmentField
Auto Trait Implementations§
impl Freeze for JSXFragmentField
impl RefUnwindSafe for JSXFragmentField
impl Send for JSXFragmentField
impl Sync for JSXFragmentField
impl Unpin for JSXFragmentField
impl UnwindSafe for JSXFragmentField
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more