[−][src]Struct zeta::lexer::token::Token
Fields
data: TokenData
source: SourceRegion
Methods
impl Token
[src]
pub fn is_any_op(&self) -> bool
[src]
pub fn is_any_kw(&self) -> bool
[src]
pub fn is_ident(&self) -> bool
[src]
pub fn is_nil(&self) -> bool
[src]
pub fn is_ignore(&self) -> bool
[src]
pub fn is_boolean(&self) -> bool
[src]
pub fn is_number(&self) -> bool
[src]
pub fn is_string(&self) -> bool
[src]
pub fn get_any_op(&self) -> Option<OperatorType>
[src]
pub fn get_any_kw(&self) -> Option<KeywordType>
[src]
pub fn get_ident(&self) -> Option<Identifier>
[src]
pub fn get_boolean(&self) -> Option<bool>
[src]
pub fn get_number(&self) -> Option<Number>
[src]
pub fn get_string(&self) -> Option<String>
[src]
pub fn is_specific_op(&self, op: OperatorType) -> bool
[src]
pub fn is_specific_kw(&self, kw: KeywordType) -> bool
[src]
pub fn is_any_op_of(&self, ops: &[OperatorType]) -> bool
[src]
pub fn is_any_kw_of(&self, kws: &[KeywordType]) -> bool
[src]
pub fn get_any_op_of(&self, ops: &[OperatorType]) -> Option<OperatorType>
[src]
pub fn get_any_kw_of(&self, kws: &[KeywordType]) -> Option<KeywordType>
[src]
pub fn is_literal(&self) -> bool
[src]
pub fn is_primary(&self) -> bool
[src]
pub fn get_literal(&self) -> Option<Literal>
[src]
pub fn get_primary(&self) -> Option<Primary>
[src]
pub fn is_literal_or_ignore(&self) -> bool
[src]
pub fn is_ident_or_ignore(&self) -> bool
[src]
pub fn is_primary_or_ignore(&self) -> bool
[src]
pub fn get_literal_or_ignore(&self) -> Option<MaybeIgnore<Literal>>
[src]
pub fn get_ident_or_ignore(&self) -> Option<MaybeIgnore<Identifier>>
[src]
pub fn get_primary_or_ignore(&self) -> Option<MaybeIgnore<Primary>>
[src]
Trait Implementations
Auto Trait Implementations
impl Sync for Token
impl Send for Token
impl Unpin for Token
impl UnwindSafe for Token
impl RefUnwindSafe for Token
Blanket Implementations
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,