Struct sway_core::language::ty::TyEnumDeclaration
source · pub struct TyEnumDeclaration {
pub name: Ident,
pub type_parameters: Vec<TypeParameter>,
pub attributes: AttributesMap,
pub variants: Vec<TyEnumVariant>,
pub span: Span,
pub visibility: Visibility,
}Fields§
§name: Ident§type_parameters: Vec<TypeParameter>§attributes: AttributesMap§variants: Vec<TyEnumVariant>§span: Span§visibility: VisibilityImplementations§
source§impl TyEnumDeclaration
impl TyEnumDeclaration
pub fn type_check(
ctx: TypeCheckContext<'_>,
decl: EnumDeclaration
) -> CompileResult<Self>
Trait Implementations§
source§impl Clone for TyEnumDeclaration
impl Clone for TyEnumDeclaration
source§fn clone(&self) -> TyEnumDeclaration
fn clone(&self) -> TyEnumDeclaration
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 more