[][src]Struct interact::TokenVec

pub struct TokenVec<'a> { /* fields omitted */ }

Wrapper for the traversal of a borrowed list of tokens.

Implementations

impl<'a> TokenVec<'a>[src]

pub fn new(tokens: &'a [Token<'a>]) -> Self[src]

pub fn clone_owned(&self) -> TokenVec<'static>[src]

pub fn take_pos(&mut self, other: usize)[src]

pub fn pos(&self) -> usize[src]

pub fn new_empty() -> Self[src]

pub fn remaining(&self) -> usize[src]

pub fn has_remaining(&self) -> bool[src]

pub fn is_empty(&self) -> bool[src]

pub fn top(&self) -> &Token<'a>[src]

pub fn top_kind(&self) -> &TokenKind[src]

pub fn len(&self) -> usize[src]

pub fn advance(&mut self, count: usize)[src]

pub fn step(&mut self)[src]

Trait Implementations

impl<'a> Clone for TokenVec<'a>[src]

impl<'a> Debug for TokenVec<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for TokenVec<'a>

impl<'a> Send for TokenVec<'a>

impl<'a> Sync for TokenVec<'a>

impl<'a> Unpin for TokenVec<'a>

impl<'a> UnwindSafe for TokenVec<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.