Struct cairo_lang_semantic::literals::LiteralId
source · pub struct LiteralId(/* private fields */);
Implementations§
Trait Implementations§
source§impl<T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for LiteralId
impl<T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for LiteralId
source§impl InternKey for LiteralId
impl InternKey for LiteralId
source§fn from_intern_id(salsa_id: InternId) -> Self
fn from_intern_id(salsa_id: InternId) -> Self
Create an instance of the intern-key from a
u32
value.source§fn as_intern_id(&self) -> InternId
fn as_intern_id(&self) -> InternId
Extract the
u32
with which the intern-key was created.source§impl PartialEq for LiteralId
impl PartialEq for LiteralId
source§impl<'a> SemanticRewriter<LiteralId, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<LiteralId, DiagnosticAdded> for SubstitutionRewriter<'a>
impl Copy for LiteralId
impl Eq for LiteralId
impl StructuralEq for LiteralId
impl StructuralPartialEq for LiteralId
Auto Trait Implementations§
impl RefUnwindSafe for LiteralId
impl Send for LiteralId
impl Sync for LiteralId
impl Unpin for LiteralId
impl UnwindSafe for LiteralId
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.