Enum yaml_rust_davvid::scanner::TokenType
source · pub enum TokenType {
Show 22 variants
NoToken,
StreamStart(TEncoding),
StreamEnd,
VersionDirective(u32, u32),
TagDirective(String, String),
DocumentStart,
DocumentEnd,
BlockSequenceStart,
BlockMappingStart,
BlockEnd,
FlowSequenceStart,
FlowSequenceEnd,
FlowMappingStart,
FlowMappingEnd,
BlockEntry,
FlowEntry,
Key,
Value,
Alias(String),
Anchor(String),
Tag(String, String),
Scalar(TScalarStyle, String),
}
Variants§
NoToken
StreamStart(TEncoding)
StreamEnd
VersionDirective(u32, u32)
major, minor
TagDirective(String, String)
handle, prefix
DocumentStart
DocumentEnd
BlockSequenceStart
BlockMappingStart
BlockEnd
FlowSequenceStart
FlowSequenceEnd
FlowMappingStart
FlowMappingEnd
BlockEntry
FlowEntry
Key
Value
Alias(String)
Anchor(String)
Tag(String, String)
handle, suffix
Scalar(TScalarStyle, String)
Trait Implementations§
source§impl PartialEq<TokenType> for TokenType
impl PartialEq<TokenType> for TokenType
impl Eq for TokenType
impl StructuralEq for TokenType
impl StructuralPartialEq for TokenType
Auto Trait Implementations§
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnwindSafe for TokenType
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more