pub enum Token {
Whitespace(String),
Comment(String),
PlusSign,
BlockBegin,
BlockEnd,
QuotedString(String),
Identifier(String),
StatementEnd,
EndOfInput,
}Expand description
YANG Token type.
Variants§
Whitespace(String)
Space, tab, carriage return and/or line feed.
Comment(String)
Single line or multi line comments.
PlusSign
“+”
BlockBegin
“{”.
BlockEnd
“}”.
QuotedString(String)
Single quoted or double qouted string.
Identifier(String)
Unquoted identifier.
StatementEnd
“;”.
EndOfInput
End of Input.
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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