Struct lib_ruby_parser::source::token_rewriter::TokenRewriterResult
source · [−]#[repr(C)]pub struct TokenRewriterResult {
pub rewritten_token: Box<Token>,
pub token_action: RewriteAction,
pub lex_state_action: LexStateAction,
}
Expand description
Output of the token rewriter
Fields
rewritten_token: Box<Token>
Rewritten token. Can be input token if no rewriting expected
token_action: RewriteAction
Action to be applied on a token (keep or drop)
lex_state_action: LexStateAction
Action to be applied on lexer’s state (keep as is or change)
Trait Implementations
sourceimpl Clone for TokenRewriterResult
impl Clone for TokenRewriterResult
sourcefn clone(&self) -> TokenRewriterResult
fn clone(&self) -> TokenRewriterResult
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 TokenRewriterResult
impl Debug for TokenRewriterResult
sourceimpl PartialEq<TokenRewriterResult> for TokenRewriterResult
impl PartialEq<TokenRewriterResult> for TokenRewriterResult
sourcefn eq(&self, other: &TokenRewriterResult) -> bool
fn eq(&self, other: &TokenRewriterResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TokenRewriterResult) -> bool
fn ne(&self, other: &TokenRewriterResult) -> bool
This method tests for !=
.
impl Eq for TokenRewriterResult
impl StructuralEq for TokenRewriterResult
impl StructuralPartialEq for TokenRewriterResult
Auto Trait Implementations
impl RefUnwindSafe for TokenRewriterResult
impl Send for TokenRewriterResult
impl Sync for TokenRewriterResult
impl Unpin for TokenRewriterResult
impl UnwindSafe for TokenRewriterResult
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more