Enum cairo_lang_parser::parser::TryParseFailure
source · pub enum TryParseFailure {
SkipToken,
DoNothing,
}
Expand description
The possible results of a try_parse_* function failing to parse.
Variants§
SkipToken
The parsing failed, and no token was consumed, the current token is the token which caused the failure and thus should be skipped by the caller.
DoNothing
The parsing failed, some tokens were consumed, and the current token is yet to be processed. Should be used when the failure cannot be determined by the first token alone, and thus the tokens until the token which determines the failure should be consumed.
Trait Implementations§
source§impl PartialEq for TryParseFailure
impl PartialEq for TryParseFailure
source§fn eq(&self, other: &TryParseFailure) -> bool
fn eq(&self, other: &TryParseFailure) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TryParseFailure
Auto Trait Implementations§
impl Freeze for TryParseFailure
impl RefUnwindSafe for TryParseFailure
impl Send for TryParseFailure
impl Sync for TryParseFailure
impl Unpin for TryParseFailure
impl UnwindSafe for TryParseFailure
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