[−][src]Enum moore_vhdl_syntax::lexer::token::Token
A primary token as emitted by the lexer.
Variants
Ident(Name)A basic or extended identifier.
Lit(Literal)A literal.
OpenDelim(DelimToken)An opening delimiter.
CloseDelim(DelimToken)A closing delimiter.
Keyword(Kw)A keyword.
The end of the input file.
Implementations
impl Token[src]
pub fn as_str(self) -> &'static str[src]
pub fn is_ident(self) -> bool[src]
Checks if this token is a identifier.
Trait Implementations
impl Clone for Token[src]
impl Copy for Token[src]
impl Debug for Token[src]
impl Display for Token[src]
impl Eq for Token[src]
impl Hash for Token[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Token> for Token[src]
impl StructuralEq for Token[src]
impl StructuralPartialEq for Token[src]
impl<T> TokenStream<Token> for BasicParser<T> where
T: Grinder<Item = Option<u8>, Error = DiagBuilder2>, [src]
T: Grinder<Item = Option<u8>, Error = DiagBuilder2>,
fn peek(&mut self, offset: usize) -> Spanned<Token>[src]
fn bump(&mut self)[src]
fn consumed(&self) -> usize[src]
fn last_span(&self) -> Span[src]
fn emit(&mut self, diag: DiagBuilder2)[src]
fn severity(&self) -> Severity[src]
fn skip(&mut self)[src]
fn last_loc(&self) -> Location[src]
fn is_fatal(&self) -> bool[src]
fn is_error(&self) -> bool[src]
Auto Trait Implementations
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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,
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.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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.
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>,