Struct antlr_rust::token_factory::CommonTokenFactory [−][src]
pub struct CommonTokenFactory;
Expand description
Default token factory
Trait Implementations
Returns the “default value” for a type. Read more
type Inner = CommonToken<'a>
type Inner = CommonToken<'a>
Type of tokens emitted by this factory.
Creates token either from sourse
or from pure data in text
Either source
or text
are not None Read more
Creates invalid token
Invalid tokens must have TOKEN_INVALID_TYPE
token type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CommonTokenFactory
impl Send for CommonTokenFactory
impl Sync for CommonTokenFactory
impl Unpin for CommonTokenFactory
impl UnwindSafe for CommonTokenFactory
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