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: boolTrait Implementations§
Source§impl<T: Debug> Debug for GenericToken<T>
 
impl<T: Debug> Debug for GenericToken<T>
Source§impl<T: Borrow<str> + Debug> Token for GenericToken<T>
 
impl<T: Borrow<str> + Debug> Token for GenericToken<T>
fn get_token_type(&self) -> isize
fn get_channel(&self) -> isize
fn get_start(&self) -> isize
fn get_stop(&self) -> isize
fn get_line(&self) -> isize
fn get_column(&self) -> isize
fn get_text(&self) -> &str
fn set_text(&mut self, _text: String)
fn get_token_index(&self) -> isize
fn set_token_index(&self, _v: isize)
Source§fn to_owned(&self) -> OwningToken
 
fn to_owned(&self) -> OwningToken
returns fully owned representation of this token
Auto Trait Implementations§
impl<T> !Freeze for GenericToken<T>
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§
Source§impl<T> AnyExt for T
 
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
    T: Any,
 
fn downcast_ref<T>(this: &Self) -> Option<&T>where
    T: Any,
Attempts to downcast this to 
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
    T: Any,
 
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
    T: Any,
Attempts to downcast this to 
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
    T: Any,
 
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
    T: Any,
Attempts to downcast this to 
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
    T: Any,
 
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
    T: Any,
Attempts to downcast this to 
T behind Arc pointerSource§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T, X> CoerceTo<T> for Xwhere
    T: CoerceFrom<X> + ?Sized,
 
impl<T, X> CoerceTo<T> for Xwhere
    T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X>) -> Box<T>
fn coerce_ref_to(&self) -> &T
fn coerce_mut_to(&mut self) -> &mut T
Source§impl<'a, X> TidExt<'a> for X
 
impl<'a, X> TidExt<'a> for X
Source§fn is<T>(&self) -> boolwhere
    T: Tid<'a>,
 
fn is<T>(&self) -> boolwhere
    T: Tid<'a>,
Returns true if type behind self is equal to the type of T.
Source§fn downcast_ref<'b, T>(&'b self) -> Option<&'b T>where
    T: Tid<'a>,
 
fn downcast_ref<'b, T>(&'b self) -> Option<&'b T>where
    T: Tid<'a>,
Attempts to downcast self to 
T behind referenceSource§fn downcast_mut<'b, T>(&'b mut self) -> Option<&'b mut T>where
    T: Tid<'a>,
 
fn downcast_mut<'b, T>(&'b mut self) -> Option<&'b mut T>where
    T: Tid<'a>,
Attempts to downcast self to 
T behind mutable referenceSource§fn downcast_rc<T>(self: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
    T: Tid<'a>,
 
fn downcast_rc<T>(self: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
    T: Tid<'a>,
Attempts to downcast self to 
T behind Rc pointerSource§fn downcast_arc<T>(self: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
    T: Tid<'a>,
 
fn downcast_arc<T>(self: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
    T: Tid<'a>,
Attempts to downcast self to 
T behind Arc pointer