[][src]Struct ra_ap_tt::buffer::TokenBuffer

pub struct TokenBuffer<'t> { /* fields omitted */ }

A token tree buffer The safe version of syn TokenBuffer

Implementations

impl<'t> TokenBuffer<'t>[src]

pub fn new(tokens: &'t [TokenTree]) -> TokenBuffer<'t>[src]

pub fn begin(&self) -> Cursor<'_>[src]

Creates a cursor referencing the first token in the buffer and able to traverse until the end of the buffer.

Trait Implementations

impl<'t> Debug for TokenBuffer<'t>[src]

Auto Trait Implementations

impl<'t> RefUnwindSafe for TokenBuffer<'t>

impl<'t> Send for TokenBuffer<'t>

impl<'t> Sync for TokenBuffer<'t>

impl<'t> Unpin for TokenBuffer<'t>

impl<'t> UnwindSafe for TokenBuffer<'t>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.