pub enum Symbol<StorageT> {
Rule(RIdx<StorageT>),
Token(TIdx<StorageT>),
}
Variants§
Trait Implementations§
source§impl<'de, StorageT> Deserialize<'de> for Symbol<StorageT>where
StorageT: Deserialize<'de>,
impl<'de, StorageT> Deserialize<'de> for Symbol<StorageT>where
StorageT: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<StorageT: Copy> Copy for Symbol<StorageT>
impl<StorageT: Eq> Eq for Symbol<StorageT>
impl<StorageT> StructuralPartialEq for Symbol<StorageT>
Auto Trait Implementations§
impl<StorageT> Freeze for Symbol<StorageT>where
StorageT: Freeze,
impl<StorageT> RefUnwindSafe for Symbol<StorageT>where
StorageT: RefUnwindSafe,
impl<StorageT> Send for Symbol<StorageT>where
StorageT: Send,
impl<StorageT> Sync for Symbol<StorageT>where
StorageT: Sync,
impl<StorageT> Unpin for Symbol<StorageT>where
StorageT: Unpin,
impl<StorageT> UnwindSafe for Symbol<StorageT>where
StorageT: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.