pub enum Token {
}Variants§
Assign
Plus
Minus
Mult
Div
KInt
KFloat
KReturn
LiteralString(String)
LiteralInt(u32)
Identifier(String)
RCurly
LCurly
RBracket
LBracket
RParen
LParen
Comma
SemiColon
INVALID
EMPTY
Implementations§
Trait Implementations§
source§impl Parsable<Token> for TestStruct
impl Parsable<Token> for TestStruct
fn parse<'a>( iter: &mut TokenIter<Token> ) -> Result<TestStruct, ParseError<Token>>
type ApplyMatchTo = Self
fn parse_if_match<F>( iter: &mut TokenIter<TToken>, matches: F ) -> Result<Self, ParseError<TToken>>where F: Fn(&Self::ApplyMatchTo) -> bool, Self: Sized,
fn identifier() -> &'static str
source§impl Parsable<Token> for Token
impl Parsable<Token> for Token
fn parse(iter: &mut TokenIter<Token>) -> Result<Token, ParseError<Token>>where Token: Sized,
fn parse_if_match<F>( iter: &mut TokenIter<Token>, matches: F ) -> Result<Token, ParseError<Token>>where F: Fn(&Token) -> bool, Token: Sized,
type ApplyMatchTo = Self
fn identifier() -> &'static str
source§impl PartialEq<Token> for Token
impl PartialEq<Token> for Token
impl Eq for Token
impl StructuralEq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
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