Struct antlr_rust::token::GenericToken [−][src]
pub struct GenericToken<T> {
pub token_type: isize,
pub channel: isize,
pub start: isize,
pub stop: isize,
pub token_index: AtomicIsize,
pub line: isize,
pub column: isize,
pub text: T,
pub read_only: bool,
}
Fields
token_type: isize
channel: isize
start: isize
stop: isize
token_index: AtomicIsize
line: isize
column: isize
text: T
read_only: bool
Trait Implementations
returns fully owned representation of this token
Auto Trait Implementations
impl<T> RefUnwindSafe for GenericToken<T> where
T: RefUnwindSafe,
impl<T> Send for GenericToken<T> where
T: Send,
impl<T> Sync for GenericToken<T> where
T: Sync,
impl<T> Unpin for GenericToken<T> where
T: Unpin,
impl<T> UnwindSafe for GenericToken<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns true if type behind self is equal to the type of T.
Attempts to downcast self to T
behind reference
Attempts to downcast self to T
behind mutable reference
Attempts to downcast self to T
behind Rc
pointer
Attempts to downcast self to T
behind Arc
pointer