Struct sway_core::language::parsed::declaration::StructDeclaration
source · pub struct StructDeclaration {
pub name: Ident,
pub attributes: AttributesMap,
pub fields: Vec<StructField>,
pub type_parameters: Vec<TypeParameter>,
pub visibility: Visibility,
/* private fields */
}
Fields
name: Ident
attributes: AttributesMap
fields: Vec<StructField>
type_parameters: Vec<TypeParameter>
visibility: Visibility
Trait Implementations
sourceimpl Clone for StructDeclaration
impl Clone for StructDeclaration
sourcefn clone(&self) -> StructDeclaration
fn clone(&self) -> StructDeclaration
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 moreAuto Trait Implementations
impl RefUnwindSafe for StructDeclaration
impl Send for StructDeclaration
impl Sync for StructDeclaration
impl Unpin for StructDeclaration
impl UnwindSafe for StructDeclaration
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