pub struct Lookahead1<'a> { /* private fields */ }Expand description
Support for checking the next token in a stream to decide how to parse.
Use ParseStream::lookahead1 to construct this object.
Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Lookahead1<'a>
impl<'a> !RefUnwindSafe for Lookahead1<'a>
impl<'a> !Send for Lookahead1<'a>
impl<'a> !Sync for Lookahead1<'a>
impl<'a> Unpin for Lookahead1<'a>
impl<'a> UnwindSafe for Lookahead1<'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