Struct sway_ast::ItemStruct
source · [−]pub struct ItemStruct {
pub visibility: Option<PubToken>,
pub struct_token: StructToken,
pub name: Ident,
pub generics: Option<GenericParams>,
pub where_clause_opt: Option<WhereClause>,
pub fields: Braces<Punctuated<Annotated<TypeField>, CommaToken>>,
}Fields
visibility: Option<PubToken>struct_token: StructTokenname: Identgenerics: Option<GenericParams>where_clause_opt: Option<WhereClause>fields: Braces<Punctuated<Annotated<TypeField>, CommaToken>>Trait Implementations
sourceimpl Clone for ItemStruct
impl Clone for ItemStruct
sourcefn clone(&self) -> ItemStruct
fn clone(&self) -> ItemStruct
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 moresourceimpl Debug for ItemStruct
impl Debug for ItemStruct
Auto Trait Implementations
impl RefUnwindSafe for ItemStruct
impl Send for ItemStruct
impl Sync for ItemStruct
impl Unpin for ItemStruct
impl UnwindSafe for ItemStruct
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