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: Fn(&Self::ApplyMatchTo) -> bool>(
iter: &mut TokenIter<TToken>,
matches: F,
pattern: Option<&'static str>,
) -> Result<Self, ParseError<TToken>>where
Self: Sized,
fn identifier() -> &'static str
Source§impl Parsable<Token> for Token
impl Parsable<Token> for Token
fn parse(iter: &mut TokenIter<Token>) -> Result<Self, ParseError<Token>>where
Self: Sized,
fn parse_if_match<F: Fn(&Token) -> bool>(
iter: &mut TokenIter<Token>,
matches: F,
pattern: Option<&'static str>,
) -> Result<Self, ParseError<Token>>where
Self: Sized,
type ApplyMatchTo = Self
fn identifier() -> &'static str
impl ConsumableToken for Token
impl Eq for Token
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