[−][src]Enum dark_vm::tokens::token_kind::TokenKind
Variants
IntegerLiteral(i64)FloatLiteral(f64)BooleanLiteral(bool)StringLiteral(String)Identifier(String)Label(String)Implementations
impl TokenKind[src]
pub fn is_instruction(name: &str) -> Option<TokenKind>[src]
This function checks if the given name is an instrution. If it is, it returns the correct instruction token. This function is called by the lexer, specifically by the make_word function.
Arguments
name - The name of the current word.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnwindSafe for TokenKind
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, 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>,