Struct rowan::GreenTokenData[][src]

#[repr(transparent)]pub struct GreenTokenData { /* fields omitted */ }

Implementations

impl GreenTokenData[src]

pub fn kind(&self) -> SyntaxKind[src]

Kind of this Token.

pub fn text(&self) -> &str[src]

Text of this Token.

pub fn text_len(&self) -> TextSize[src]

Returns the length of the text covered by this token.

Trait Implementations

impl Borrow<GreenTokenData> for GreenToken[src]

impl Debug for GreenTokenData[src]

impl Display for GreenTokenData[src]

impl PartialEq<GreenTokenData> for GreenTokenData[src]

impl ToOwned for GreenTokenData[src]

type Owned = GreenToken

The resulting type after obtaining ownership.

Auto Trait Implementations

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> 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.