pub struct MaybeToken { /* private fields */ }
Implementations§
Source§impl MaybeToken
impl MaybeToken
pub fn is_match(&self) -> bool
pub fn match_loc(&self) -> Option<SourceRange>
pub fn error(&self, err: SyntaxErrorType) -> SyntaxError
pub fn and_then<R, F: FnOnce() -> SyntaxResult<R>>( self, f: F, ) -> SyntaxResult<Option<R>>
Auto Trait Implementations§
impl Freeze for MaybeToken
impl RefUnwindSafe for MaybeToken
impl Send for MaybeToken
impl Sync for MaybeToken
impl Unpin for MaybeToken
impl UnwindSafe for MaybeToken
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