[][src]Struct full_moon::tokenizer::Token

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

A token such consisting of its Position and a TokenType

Methods

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

pub fn start_position(&self) -> Position[src]

The position a token begins at

pub fn end_position(&self) -> Position[src]

The position a token ends at

pub fn token_type(&self) -> AtomicRef<TokenType<'a>>[src]

The type of token as well as the data needed to represent it If you don't need any other information, use token_kind instead.

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

The kind of token with no additional data. If you need any information such as idenitfier names, use token_type instead.

Trait Implementations

impl<'a, '_> Borrow<Token<'a>> for &'_ TokenReference<'a>[src]

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

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

impl<'de: 'a, 'a> Deserialize<'de> for Token<'a>[src]

impl<'a> Display for Token<'a>[src]

impl<'a> Eq for Token<'a>[src]

impl<'a> Node for Token<'a>[src]

impl<'a> Ord for Token<'a>[src]

impl<'_> Owned for Token<'_>[src]

type Owned = Token<'static>

What an owned version of the object looks like. Usually contains a 'static lifetime.

impl<'a> PartialEq<Token<'a>> for Token<'a>[src]

impl<'a> PartialOrd<Token<'a>> for Token<'a>[src]

impl<'a> Serialize for Token<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Token<'a>

impl<'a> Send for Token<'a>

impl<'a> Sync for Token<'a>

impl<'a> Unpin for Token<'a>

impl<'a> !UnwindSafe for Token<'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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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> ToString for T where
    T: Display + ?Sized
[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.