Struct antlr_rust::token_factory::OwningTokenFactory [−][src]
pub struct OwningTokenFactory;
Expand description
Token factory that produces heap allocated
OwningToken
s
Trait Implementations
Returns the “default value” for a type. Read more
type Inner = OwningToken
type Inner = OwningToken
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 OwningTokenFactory
impl Send for OwningTokenFactory
impl Sync for OwningTokenFactory
impl Unpin for OwningTokenFactory
impl UnwindSafe for OwningTokenFactory
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