Struct sway_parse::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<TypeField, CommaToken>>,
}Fields
visibility: Option<PubToken>struct_token: StructTokenname: Identgenerics: Option<GenericParams>where_clause_opt: Option<WhereClause>fields: Braces<Punctuated<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 more
sourceimpl Debug for ItemStruct
 
impl Debug for ItemStruct
sourceimpl Parse for ItemStruct
 
impl Parse for ItemStruct
fn parse(parser: &mut Parser<'_, '_>) -> ParseResult<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 T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    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
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more