[][src]Struct clang::token::Token

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

A lexed piece of a source file.

Implementations

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

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

Returns the categorization of this token.

pub fn get_spelling(&self) -> String[src]

Returns the textual representation of this token.

pub fn get_location(&self) -> SourceLocation<'tu>[src]

Returns the source location of this token.

pub fn get_range(&self) -> SourceRange<'tu>[src]

Returns the source range of this token.

Trait Implementations

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

impl<'tu> Copy for Token<'tu>[src]

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

Auto Trait Implementations

impl<'tu> RefUnwindSafe for Token<'tu>

impl<'tu> !Send for Token<'tu>

impl<'tu> !Sync for Token<'tu>

impl<'tu> Unpin for Token<'tu>

impl<'tu> UnwindSafe for Token<'tu>

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.