pub struct CommandParser { /* private fields */ }Expand description
Command parser.
Implementations§
Source§impl CommandParser
impl CommandParser
Sourcepub fn parse_command(&mut self, tokens: &[Token]) -> Result<Command, ParseError>
pub fn parse_command(&mut self, tokens: &[Token]) -> Result<Command, ParseError>
Parse a command from a token stream.
Source§impl CommandParser
impl CommandParser
Sourcepub fn is_command_keyword(token: &TokenKind) -> bool
pub fn is_command_keyword(token: &TokenKind) -> bool
Check if a token is a command keyword.
Source§impl CommandParser
impl CommandParser
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandParser
impl RefUnwindSafe for CommandParser
impl Send for CommandParser
impl Sync for CommandParser
impl Unpin for CommandParser
impl UnsafeUnpin for CommandParser
impl UnwindSafe for CommandParser
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