Struct sway_core::language::parsed::declaration::EnumDeclaration
source · pub struct EnumDeclaration {
pub name: Ident,
pub attributes: AttributesMap,
pub type_parameters: Vec<TypeParameter>,
pub variants: Vec<EnumVariant>,
pub visibility: Visibility,
/* private fields */
}Fields§
§name: Ident§attributes: AttributesMap§type_parameters: Vec<TypeParameter>§variants: Vec<EnumVariant>§visibility: VisibilityTrait Implementations§
source§impl Clone for EnumDeclaration
impl Clone for EnumDeclaration
source§fn clone(&self) -> EnumDeclaration
fn clone(&self) -> EnumDeclaration
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