#[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§
source§impl Clone for RewriteAction
impl Clone for RewriteAction
source§fn clone(&self) -> RewriteAction
fn clone(&self) -> RewriteAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RewriteAction
impl Debug for RewriteAction
source§impl PartialEq<RewriteAction> for RewriteAction
impl PartialEq<RewriteAction> for RewriteAction
source§fn eq(&self, other: &RewriteAction) -> bool
fn eq(&self, other: &RewriteAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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