Enum yaml_rust::scanner::TokenType [-] [+] [src]

pub enum TokenType {
    NoToken,
    StreamStartToken(TEncoding),
    StreamEndToken,
    VersionDirectiveToken(u32, u32),
    TagDirectiveToken(String, String),
    DocumentStartToken,
    DocumentEndToken,
    BlockSequenceStartToken,
    BlockMappingStartToken,
    BlockEndToken,
    FlowSequenceStartToken,
    FlowSequenceEndToken,
    FlowMappingStartToken,
    FlowMappingEndToken,
    BlockEntryToken,
    FlowEntryToken,
    KeyToken,
    ValueToken,
    AliasToken(String),
    AnchorToken(String),
    TagToken(String, String),
    ScalarToken(TScalarStyle, String),
}

Variants

NoToken
StreamStartToken
StreamEndToken
VersionDirectiveToken

major, minor

TagDirectiveToken

handle, prefix

DocumentStartToken
DocumentEndToken
BlockSequenceStartToken
BlockMappingStartToken
BlockEndToken
FlowSequenceStartToken
FlowSequenceEndToken
FlowMappingStartToken
FlowMappingEndToken
BlockEntryToken
FlowEntryToken
KeyToken
ValueToken
AliasToken
AnchorToken
TagToken

handle, suffix

ScalarToken

Trait Implementations

Derived Implementations

impl Eq for TokenType

impl Debug for TokenType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for TokenType

fn eq(&self, __arg_0: &TokenType) -> bool

fn ne(&self, __arg_0: &TokenType) -> bool

impl Clone for TokenType

fn clone(&self) -> TokenType

fn clone_from(&mut self, source: &Self)