[−][src]Struct lib_ruby_parser::Token 
A token that is emitted by a lexer and consumed by a parser
Fields
token_type: i32token_value: TokenValueloc: LocImplementations
impl Token[src]
pub fn to_string_lossy(&self) -> String[src]
Converts Token to a string, replaces unknown chars to U+FFFD
pub fn to_bytes(&self) -> Vec<u8>[src]
Converts Token to a vector of bytes
pub fn into_string_lossy(self) -> String[src]
pub fn into_bytes(self) -> Vec<u8>[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Token[src]
impl Send for Token[src]
impl Sync for Token[src]
impl Unpin for Token[src]
impl UnwindSafe for Token[src]
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> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,