Struct cairo_lang_semantic::types::ConcreteStructId
source · pub struct ConcreteStructId(/* private fields */);
Implementations§
source§impl ConcreteStructId
impl ConcreteStructId
pub fn struct_id(&self, db: &dyn SemanticGroup) -> StructId
Trait Implementations§
source§impl Clone for ConcreteStructId
impl Clone for ConcreteStructId
source§fn clone(&self) -> ConcreteStructId
fn clone(&self) -> ConcreteStructId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConcreteStructId
impl Debug for ConcreteStructId
source§impl<T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ConcreteStructId
impl<T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ConcreteStructId
source§impl Hash for ConcreteStructId
impl Hash for ConcreteStructId
source§impl InternKey for ConcreteStructId
impl InternKey for ConcreteStructId
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 ConcreteStructId
impl PartialEq for ConcreteStructId
source§fn eq(&self, other: &ConcreteStructId) -> bool
fn eq(&self, other: &ConcreteStructId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, Error, TRewriter: HasDb<&'a dyn SemanticGroup> + SemanticRewriter<ConcreteStructLongId, Error>> SemanticObject<TRewriter, Error> for ConcreteStructId
impl<'a, Error, TRewriter: HasDb<&'a dyn SemanticGroup> + SemanticRewriter<ConcreteStructLongId, Error>> SemanticObject<TRewriter, Error> for ConcreteStructId
fn default_rewrite(self, rewriter: &mut TRewriter) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<ConcreteStructId, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<ConcreteStructId, DiagnosticAdded> for SubstitutionRewriter<'a>
fn rewrite( &mut self, value: ConcreteStructId ) -> Result<ConcreteStructId, DiagnosticAdded>
source§impl<'a> SemanticRewriter<ConcreteStructId, NoError> for Inference<'a>
impl<'a> SemanticRewriter<ConcreteStructId, NoError> for Inference<'a>
fn rewrite( &mut self, value: ConcreteStructId ) -> Result<ConcreteStructId, NoError>
impl Copy for ConcreteStructId
impl Eq for ConcreteStructId
impl StructuralEq for ConcreteStructId
impl StructuralPartialEq for ConcreteStructId
Auto Trait Implementations§
impl RefUnwindSafe for ConcreteStructId
impl Send for ConcreteStructId
impl Sync for ConcreteStructId
impl Unpin for ConcreteStructId
impl UnwindSafe for ConcreteStructId
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.