Struct cairo_lang_semantic::items::enm::ConcreteVariant
source · pub struct ConcreteVariant {
pub concrete_enum_id: ConcreteEnumId,
pub id: VariantId,
pub ty: TypeId,
pub idx: usize,
}
Fields§
§concrete_enum_id: ConcreteEnumId
§id: VariantId
§ty: TypeId
§idx: usize
The index of the variant from within the variant list.
Trait Implementations§
source§impl Clone for ConcreteVariant
impl Clone for ConcreteVariant
source§fn clone(&self) -> ConcreteVariant
fn clone(&self) -> ConcreteVariant
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 ConcreteVariant
impl Debug for ConcreteVariant
source§impl<'a, T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ConcreteVariant
impl<'a, T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ConcreteVariant
source§impl Hash for ConcreteVariant
impl Hash for ConcreteVariant
source§impl PartialEq for ConcreteVariant
impl PartialEq for ConcreteVariant
source§fn eq(&self, other: &ConcreteVariant) -> bool
fn eq(&self, other: &ConcreteVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SemanticRewriter<ConcreteEnumId, Error> + SemanticRewriter<VariantId, Error> + SemanticRewriter<TypeId, Error>, Error> SemanticObject<T, Error> for ConcreteVariant
impl<T: SemanticRewriter<ConcreteEnumId, Error> + SemanticRewriter<VariantId, Error> + SemanticRewriter<TypeId, Error>, Error> SemanticObject<T, Error> for ConcreteVariant
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<ConcreteVariant, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<ConcreteVariant, DiagnosticAdded> for SubstitutionRewriter<'a>
fn rewrite( &mut self, value: ConcreteVariant ) -> Result<ConcreteVariant, DiagnosticAdded>
source§impl<'a> SemanticRewriter<ConcreteVariant, NoError> for Inference<'a>
impl<'a> SemanticRewriter<ConcreteVariant, NoError> for Inference<'a>
fn rewrite( &mut self, value: ConcreteVariant ) -> Result<ConcreteVariant, NoError>
impl Eq for ConcreteVariant
impl StructuralEq for ConcreteVariant
impl StructuralPartialEq for ConcreteVariant
Auto Trait Implementations§
impl RefUnwindSafe for ConcreteVariant
impl Send for ConcreteVariant
impl Sync for ConcreteVariant
impl Unpin for ConcreteVariant
impl UnwindSafe for ConcreteVariant
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.