[−][src]Struct antlr_rust::token_factory::OwningTokenFactory
Trait Implementations
impl Default for OwningTokenFactory
[src]
fn default() -> OwningTokenFactory
[src]
impl<'a> TidAble<'a> for OwningTokenFactory
[src]
type Static = OwningTokenFactory
impl<'a> TokenFactory<'a> for OwningTokenFactory
[src]
type Inner = OwningToken
type of tokens emitted by this factory
type Tok = Box<Self::Inner>
ownership of the emitted tokens
type Data = str
type of the underlying storage
type From = String
type of the reference to Self::Data
that factory needs for producing tokens
fn create<T: ?Sized>(
&'a self,
source: Option<&mut T>,
ttype: isize,
text: Option<String>,
channel: isize,
start: isize,
stop: isize,
line: isize,
column: isize
) -> Self::Tok where
T: CharStream<String>,
[src]
&'a self,
source: Option<&mut T>,
ttype: isize,
text: Option<String>,
channel: isize,
start: isize,
stop: isize,
line: isize,
column: isize
) -> Self::Tok where
T: CharStream<String>,
fn create_invalid() -> Self::Tok
[src]
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
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,
pub 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> NodeText for T
[src]
impl<'input, T> NodeText for T where
T: CustomRuleContext<'input>,
[src]
T: CustomRuleContext<'input>,
impl<'a, T> Tid<'a> for T where
T: TidAble<'a> + ?Sized,
[src]
T: TidAble<'a> + ?Sized,
impl<'a, X> TidExt<'a> for X where
X: Tid<'a> + ?Sized,
[src]
X: Tid<'a> + ?Sized,
pub fn is<T>(&self) -> bool where
T: Tid<'a>,
[src]
T: Tid<'a>,
pub fn downcast_ref<T>(&'b self) -> Option<&'b T> where
T: Tid<'a>,
[src]
T: Tid<'a>,
pub fn downcast_mut<T>(&'b mut self) -> Option<&'b mut T> where
T: Tid<'a>,
[src]
T: Tid<'a>,
pub fn downcast_rc<T>(self: Rc<X>) -> Result<Rc<T>, Rc<X>> where
T: Tid<'a>,
[src]
T: Tid<'a>,
pub fn downcast_arc<T>(self: Arc<X>) -> Result<Arc<T>, Arc<X>> where
T: Tid<'a>,
[src]
T: Tid<'a>,
pub fn downcast_box<T>(self: Box<X>) -> Result<Box<T>, Box<X>> where
T: Tid<'a>,
[src]
T: Tid<'a>,
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.
pub 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>,