Struct sway_core::language::ty::TyTraitDeclaration
source · pub struct TyTraitDeclaration {
pub name: Ident,
pub type_parameters: Vec<TypeParameter>,
pub interface_surface: Vec<DeclarationId>,
pub methods: Vec<DeclarationId>,
pub supertraits: Vec<Supertrait>,
pub visibility: Visibility,
pub attributes: AttributesMap,
pub span: Span,
}
Fields§
§name: Ident
§type_parameters: Vec<TypeParameter>
§interface_surface: Vec<DeclarationId>
§methods: Vec<DeclarationId>
§supertraits: Vec<Supertrait>
§visibility: Visibility
§attributes: AttributesMap
§span: Span
Trait Implementations§
source§impl Clone for TyTraitDeclaration
impl Clone for TyTraitDeclaration
source§fn clone(&self) -> TyTraitDeclaration
fn clone(&self) -> TyTraitDeclaration
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