Struct syn::buffer::TokenBuffer
source · [−]pub struct TokenBuffer { /* private fields */ }
Expand description
A buffer that can be efficiently traversed multiple times, unlike
TokenStream
which requires a deep copy in order to traverse more than
once.
This type is available only if Syn is built with the "parsing"
feature.
Implementations
sourceimpl TokenBuffer
impl TokenBuffer
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TokenBuffer
impl !Send for TokenBuffer
impl !Sync for TokenBuffer
impl Unpin for TokenBuffer
impl UnwindSafe for TokenBuffer
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