[−][src]Struct antlr_rust::token::GenericToken
Fields
token_type: isize
channel: isize
start: isize
stop: isize
token_index: AtomicIsize
line: isize
column: isize
text: T
read_only: bool
Trait Implementations
impl<T: Clone> Clone for GenericToken<T> where
Self: Token,
[src]
Self: Token,
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for GenericToken<T>
[src]
impl<T: Borrow<str> + Debug> Display for GenericToken<T>
[src]
impl<T: Borrow<str> + Debug> Token for GenericToken<T>
[src]
type Data = str
Type of the underlying data this token refers to
pub fn get_token_type(&self) -> isize
[src]
pub fn get_channel(&self) -> isize
[src]
pub fn get_start(&self) -> isize
[src]
pub fn get_stop(&self) -> isize
[src]
pub fn get_line(&self) -> isize
[src]
pub fn get_column(&self) -> isize
[src]
pub fn get_text(&self) -> &str
[src]
pub fn set_text(&mut self, _text: String)
[src]
pub fn get_token_index(&self) -> isize
[src]
pub fn set_token_index(&self, _v: isize)
[src]
pub fn to_owned(&self) -> OwningToken
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for GenericToken<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for GenericToken<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for GenericToken<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for GenericToken<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for GenericToken<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
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<'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, Global>
) -> Result<Box<T, Global>, Box<X, Global>> where
T: Tid<'a>,
[src]
self: Box<X, Global>
) -> Result<Box<T, Global>, Box<X, Global>> where
T: Tid<'a>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,