#[repr(C)]
pub enum RewriteAction {
Drop,
Keep,
}
Expand description
Enum of what token rewriter should do with a token.
Variants
Drop
Means “drop the token”, i.e. don’t return it to a parser
Keep
Means “keep the token”, i.e. return it to a parser
Trait Implementations
sourceimpl Clone for RewriteAction
impl Clone for RewriteAction
sourcefn clone(&self) -> RewriteAction
fn clone(&self) -> RewriteAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RewriteAction
impl Debug for RewriteAction
sourceimpl PartialEq<RewriteAction> for RewriteAction
impl PartialEq<RewriteAction> for RewriteAction
impl Eq for RewriteAction
impl StructuralEq for RewriteAction
impl StructuralPartialEq for RewriteAction
Auto Trait Implementations
impl RefUnwindSafe for RewriteAction
impl Send for RewriteAction
impl Sync for RewriteAction
impl Unpin for RewriteAction
impl UnwindSafe for RewriteAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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