pub trait TokenStreamExt {
// Required methods
fn peek_iter(self) -> PeekIter;
fn with_span(self, _: Span) -> Self;
fn as_vec(self) -> Vec<TokenTree>;
fn replace_atoms(self, _: fn(TokenTree) -> TokenTree) -> Self;
}Expand description
This is an extension trait for the following impl:
ⓘ
#[extension(pub trait TokenStreamExt)]
impl for TokenStream
Required Methods§
fn peek_iter(self) -> PeekIter
fn with_span(self, _: Span) -> Self
fn as_vec(self) -> Vec<TokenTree>
fn replace_atoms(self, _: fn(TokenTree) -> TokenTree) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.