pub enum Token {
}Expand description
Token types in LNMP format
Variants§
FieldPrefix
Field prefix ‘F’
Number(String)
Numeric value (field ID or number)
Equals
Equals sign ‘=’
Semicolon
Semicolon ‘;’
Colon
Colon ‘:’ (for type hints)
TypeHint(String)
Type hint identifier (i, f, b, s, sa, r, ra)
LeftBracket
Left bracket ‘[’
RightBracket
Right bracket ‘]’
LeftBrace
Left brace ‘{’ (for nested records)
RightBrace
Right brace ‘}’ (for nested records)
Comma
Comma ‘,’
QuotedString(String)
Quoted string “…”
UnquotedString(String)
Unquoted string (identifier)
Hash
Hash ‘#’ (for checksums or comments)
Newline
Newline character
Eof
End of file
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