Struct rowan::GreenTokenData [−][src]
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]
fn borrow(&self) -> &GreenTokenData
[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.
fn to_owned(&self) -> GreenToken
[src]
pub fn clone_into(&self, target: &mut Self::Owned)
[src]
Auto Trait Implementations
impl RefUnwindSafe for GreenTokenData
impl Send for GreenTokenData
impl Sync for GreenTokenData
impl Unpin for GreenTokenData
impl UnwindSafe for GreenTokenData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,