Skip to main content

BumpWithContext

Trait BumpWithContext 

Source
pub trait BumpWithContext: TokenSource {
    type Context;

    // Required methods
    fn bump_with_context(&mut self, context: Self::Context);
    fn skip_as_trivia_with_context(&mut self, context: Self::Context);
}

Required Associated Types§

Required Methods§

Source

fn bump_with_context(&mut self, context: Self::Context)

Source

fn skip_as_trivia_with_context(&mut self, context: Self::Context)

Skips the current token as skipped token trivia

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§