pub enum SemanticEntity {
Declaration(DeclarationId),
Reference(usize),
}Expand description
Identities belong to SemanticResult::bindings, independently of CST identity.
Variants§
Declaration(DeclarationId)
Reference(usize)
Index into the retained binding facts’ written references.
Trait Implementations§
Source§impl Clone for SemanticEntity
impl Clone for SemanticEntity
impl Copy for SemanticEntity
Source§impl Debug for SemanticEntity
impl Debug for SemanticEntity
impl Eq for SemanticEntity
Source§impl PartialEq for SemanticEntity
impl PartialEq for SemanticEntity
impl StructuralPartialEq for SemanticEntity
Auto Trait Implementations§
impl Freeze for SemanticEntity
impl RefUnwindSafe for SemanticEntity
impl Send for SemanticEntity
impl Sync for SemanticEntity
impl Unpin for SemanticEntity
impl UnsafeUnpin for SemanticEntity
impl UnwindSafe for SemanticEntity
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§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.