pub struct TokenKey { /* private fields */ }Expand description
The intern key type for the source text of GreenTokens.
Each unique key uniquely identifies a deduplicated, interned source string.
Trait Implementations§
Source§impl Key for TokenKey
Available on crate feature lasso_compat only.
impl Key for TokenKey
Available on crate feature
lasso_compat only.Source§fn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns the
usize that represents the current keySource§fn try_from_usize(int: usize) -> Option<Self>
fn try_from_usize(int: usize) -> Option<Self>
Attempts to create a key from a
usize, returning None if it failsimpl Copy for TokenKey
impl Eq for TokenKey
impl StructuralPartialEq for TokenKey
Auto Trait Implementations§
impl Freeze for TokenKey
impl RefUnwindSafe for TokenKey
impl Send for TokenKey
impl Sync for TokenKey
impl Unpin for TokenKey
impl UnwindSafe for TokenKey
Blanket Implementations§
Source§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