Enum cairo_lang_semantic::types::ConcreteTypeId
source · pub enum ConcreteTypeId {
Struct(ConcreteStructId),
Enum(ConcreteEnumId),
Extern(ConcreteExternTypeId),
}
Variants§
Implementations§
source§impl ConcreteTypeId
impl ConcreteTypeId
pub fn new( db: &dyn SemanticGroup, generic_ty: GenericTypeId, generic_args: Vec<GenericArgumentId> ) -> Self
pub fn generic_type(&self, db: &dyn SemanticGroup) -> GenericTypeId
pub fn generic_args(&self, db: &dyn SemanticGroup) -> Vec<GenericArgumentId>
pub fn format(&self, db: &dyn SemanticGroup) -> String
Trait Implementations§
source§impl Clone for ConcreteTypeId
impl Clone for ConcreteTypeId
source§fn clone(&self) -> ConcreteTypeId
fn clone(&self) -> ConcreteTypeId
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 ConcreteTypeId
impl Debug for ConcreteTypeId
source§impl DebugWithDb<dyn SemanticGroup> for ConcreteTypeId
impl DebugWithDb<dyn SemanticGroup> for ConcreteTypeId
source§impl Hash for ConcreteTypeId
impl Hash for ConcreteTypeId
source§impl OptionFrom<TypeLongId> for ConcreteTypeId
impl OptionFrom<TypeLongId> for ConcreteTypeId
fn option_from(other: TypeLongId) -> Option<Self>
source§impl PartialEq for ConcreteTypeId
impl PartialEq for ConcreteTypeId
source§fn eq(&self, other: &ConcreteTypeId) -> bool
fn eq(&self, other: &ConcreteTypeId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SemanticRewriter<ConcreteStructId, Error> + SemanticRewriter<ConcreteEnumId, Error> + SemanticRewriter<ConcreteExternTypeId, Error>, Error> SemanticObject<T, Error> for ConcreteTypeId
impl<T: SemanticRewriter<ConcreteStructId, Error> + SemanticRewriter<ConcreteEnumId, Error> + SemanticRewriter<ConcreteExternTypeId, Error>, Error> SemanticObject<T, Error> for ConcreteTypeId
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<ConcreteTypeId, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<ConcreteTypeId, DiagnosticAdded> for SubstitutionRewriter<'a>
fn rewrite( &mut self, value: ConcreteTypeId ) -> Result<ConcreteTypeId, DiagnosticAdded>
source§impl<'a> SemanticRewriter<ConcreteTypeId, NoError> for Inference<'a>
impl<'a> SemanticRewriter<ConcreteTypeId, NoError> for Inference<'a>
fn rewrite(&mut self, value: ConcreteTypeId) -> Result<ConcreteTypeId, NoError>
impl Eq for ConcreteTypeId
impl StructuralEq for ConcreteTypeId
impl StructuralPartialEq for ConcreteTypeId
Auto Trait Implementations§
impl RefUnwindSafe for ConcreteTypeId
impl Send for ConcreteTypeId
impl Sync for ConcreteTypeId
impl Unpin for ConcreteTypeId
impl UnwindSafe for ConcreteTypeId
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.