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