pub enum Symbol<StorageT> {
Rule(RIdx<StorageT>),
Token(TIdx<StorageT>),
}
Variants§
Trait Implementations§
source§impl<StorageT: PartialEq> PartialEq for Symbol<StorageT>
impl<StorageT: PartialEq> PartialEq for Symbol<StorageT>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.