Enum glsl_lang_lexer::v2_full::core::HandleTokenResult
source · pub enum HandleTokenResult<E: Error + 'static> {
None,
Item(Result<(LexerPosition, Token, LexerPosition), LexicalError<E>>),
Pending(VecDeque<Result<(LexerPosition, Token, LexerPosition), LexicalError<E>>>, VecDeque<Result<Event, Located<E>>>),
}
Variants§
None
Item(Result<(LexerPosition, Token, LexerPosition), LexicalError<E>>)
Pending(VecDeque<Result<(LexerPosition, Token, LexerPosition), LexicalError<E>>>, VecDeque<Result<Event, Located<E>>>)
Implementations§
source§impl<E: Error + 'static> HandleTokenResult<E>
impl<E: Error + 'static> HandleTokenResult<E>
pub fn push_item( &mut self, item: Result<(LexerPosition, Token, LexerPosition), LexicalError<E>>, )
pub fn pop_item( &mut self, ) -> Option<Result<(LexerPosition, Token, LexerPosition), LexicalError<E>>>
pub fn pop_event(&mut self) -> Option<Result<Event, Located<E>>>
pub fn push_errors(&mut self, errors: impl IntoIterator<Item = Error>)
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for HandleTokenResult<E>where
E: Freeze,
impl<E> !RefUnwindSafe for HandleTokenResult<E>
impl<E> !Send for HandleTokenResult<E>
impl<E> !Sync for HandleTokenResult<E>
impl<E> Unpin for HandleTokenResult<E>where
E: Unpin,
impl<E> !UnwindSafe for HandleTokenResult<E>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more