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 · 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 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
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 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