Skip to main content

ScanToken

Trait ScanToken 

Source
pub trait ScanToken {
    // Required methods
    fn text(&self) -> &str;
    fn is_keyword(&self, kw: &str) -> bool;
    fn line(&self) -> u32;
}

Required Methods§

Source

fn text(&self) -> &str

Source

fn is_keyword(&self, kw: &str) -> bool

Source

fn line(&self) -> u32

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§