#[repr(u16)]pub enum YamlElementType {
Token(YamlTokenType),
Document,
Root,
Error,
}Expand description
Element types for the YAML language.
Variants§
Token(YamlTokenType)
A leaf node containing a single token.
Document
A YAML document.
Root
The root node of a YAML file.
Error
An error node.
Trait Implementations§
Source§impl Clone for YamlElementType
impl Clone for YamlElementType
Source§fn clone(&self) -> YamlElementType
fn clone(&self) -> YamlElementType
Returns a duplicate 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 YamlElementType
impl Debug for YamlElementType
Source§impl<'de> Deserialize<'de> for YamlElementType
impl<'de> Deserialize<'de> for YamlElementType
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 ElementType for YamlElementType
impl ElementType for YamlElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<YamlTokenType> for YamlElementType
impl From<YamlTokenType> for YamlElementType
Source§fn from(token: YamlTokenType) -> Self
fn from(token: YamlTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for YamlElementType
impl Hash for YamlElementType
Source§impl Ord for YamlElementType
impl Ord for YamlElementType
Source§fn cmp(&self, other: &YamlElementType) -> Ordering
fn cmp(&self, other: &YamlElementType) -> 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 YamlElementType
impl PartialEq for YamlElementType
Source§impl PartialOrd for YamlElementType
impl PartialOrd for YamlElementType
Source§impl Serialize for YamlElementType
impl Serialize for YamlElementType
impl Copy for YamlElementType
impl Eq for YamlElementType
impl StructuralPartialEq for YamlElementType
Auto Trait Implementations§
impl Freeze for YamlElementType
impl RefUnwindSafe for YamlElementType
impl Send for YamlElementType
impl Sync for YamlElementType
impl Unpin for YamlElementType
impl UnsafeUnpin for YamlElementType
impl UnwindSafe for YamlElementType
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