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 for TokenType
impl PartialEq for TokenType
impl Eq for TokenType
impl StructuralPartialEq for TokenType
Auto Trait Implementations§
impl Freeze for TokenType
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