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§
source§impl Clone for TokenRewriterResult
impl Clone for TokenRewriterResult
source§fn clone(&self) -> TokenRewriterResult
fn clone(&self) -> TokenRewriterResult
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 TokenRewriterResult
impl Debug for TokenRewriterResult
source§impl PartialEq<TokenRewriterResult> for TokenRewriterResult
impl PartialEq<TokenRewriterResult> for TokenRewriterResult
source§fn 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 ==
.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§
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