Struct sway_core::language::ty::TyEnumVariant
source · pub struct TyEnumVariant {
pub name: Ident,
pub type_id: TypeId,
pub initial_type_id: TypeId,
pub type_span: Span,
pub span: Span,
pub attributes: AttributesMap,
/* private fields */
}
Fields
name: Ident
type_id: TypeId
initial_type_id: TypeId
type_span: Span
span: Span
attributes: AttributesMap
Trait Implementations
sourceimpl Clone for TyEnumVariant
impl Clone for TyEnumVariant
sourcefn clone(&self) -> TyEnumVariant
fn clone(&self) -> TyEnumVariant
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TyEnumVariant
impl Debug for TyEnumVariant
sourceimpl Hash for TyEnumVariant
impl Hash for TyEnumVariant
sourceimpl PartialEq<TyEnumVariant> for TyEnumVariant
impl PartialEq<TyEnumVariant> for TyEnumVariant
impl Eq for TyEnumVariant
impl StructuralEq for TyEnumVariant
Auto Trait Implementations
impl RefUnwindSafe for TyEnumVariant
impl Send for TyEnumVariant
impl Sync for TyEnumVariant
impl Unpin for TyEnumVariant
impl UnwindSafe for TyEnumVariant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.