#[repr(C)]
pub enum LexStateAction {
Set(i32),
Keep,
}
Expand description
Enum of what token rewriter should do with the state of the lexer
Variants
Set(i32)
Means “set the state to X”
Keep
Means “keep the state unchanged”
Trait Implementations
sourceimpl Clone for LexStateAction
impl Clone for LexStateAction
sourcefn clone(&self) -> LexStateAction
fn clone(&self) -> LexStateAction
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LexStateAction
impl Debug for LexStateAction
sourceimpl PartialEq<LexStateAction> for LexStateAction
impl PartialEq<LexStateAction> for LexStateAction
sourcefn eq(&self, other: &LexStateAction) -> bool
fn eq(&self, other: &LexStateAction) -> bool
impl Eq for LexStateAction
impl StructuralEq for LexStateAction
impl StructuralPartialEq for LexStateAction
Auto Trait Implementations
impl RefUnwindSafe for LexStateAction
impl Send for LexStateAction
impl Sync for LexStateAction
impl Unpin for LexStateAction
impl UnwindSafe for LexStateAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more