struct Parser<'a> {
t: Tokenizer<'a>,
}
Fields§
§t: Tokenizer<'a>
Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
fn new(s: &'a str) -> Parser<'a>
fn expr(&mut self) -> Result<CfgExpr, ParseError>
fn cfg(&mut self) -> Result<Cfg, ParseError>
fn peek(&mut self) -> Option<Result<Token<'a>, ParseError>>
fn try(&mut self, token: &Token<'a>) -> bool
fn eat(&mut self, token: &Token<'a>) -> Result<(), ParseError>
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'a>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes