Enum swc_html_visit::fields::DocumentField
source · [−]pub enum DocumentField {
Span,
Mode,
Children(usize),
}
Expand description
This enum represents fields of DocumentField
Variants
Span
This represents span
Mode
This represents mode
Children(usize)
This represents children
Implementations
sourceimpl DocumentField
impl DocumentField
Trait Implementations
sourceimpl Clone for DocumentField
impl Clone for DocumentField
sourcefn clone(&self) -> DocumentField
fn clone(&self) -> DocumentField
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DocumentField
impl Debug for DocumentField
sourceimpl<'de> Deserialize<'de> for DocumentField
impl<'de> Deserialize<'de> for DocumentField
sourcefn 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
sourceimpl Hash for DocumentField
impl Hash for DocumentField
sourceimpl Ord for DocumentField
impl Ord for DocumentField
sourcefn cmp(&self, other: &DocumentField) -> Ordering
fn cmp(&self, other: &DocumentField) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<DocumentField> for DocumentField
impl PartialEq<DocumentField> for DocumentField
sourcefn eq(&self, other: &DocumentField) -> bool
fn eq(&self, other: &DocumentField) -> bool
sourceimpl PartialOrd<DocumentField> for DocumentField
impl PartialOrd<DocumentField> for DocumentField
sourcefn partial_cmp(&self, other: &DocumentField) -> Option<Ordering>
fn partial_cmp(&self, other: &DocumentField) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Serialize for DocumentField
impl Serialize for DocumentField
impl Copy for DocumentField
impl Eq for DocumentField
impl StructuralEq for DocumentField
impl StructuralPartialEq for DocumentField
Auto Trait Implementations
impl RefUnwindSafe for DocumentField
impl Send for DocumentField
impl Sync for DocumentField
impl Unpin for DocumentField
impl UnwindSafe for DocumentField
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more