Struct sway_parse::StorageField
source · [−]pub struct StorageField {
pub name: Ident,
pub colon_token: ColonToken,
pub ty: Ty,
pub initializer: Option<(EqToken, Expr)>,
}
Fields
name: Ident
colon_token: ColonToken
ty: Ty
initializer: Option<(EqToken, Expr)>
Trait Implementations
sourceimpl Clone for StorageField
impl Clone for StorageField
sourcefn clone(&self) -> StorageField
fn clone(&self) -> StorageField
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 StorageField
impl Debug for StorageField
sourceimpl Parse for StorageField
impl Parse for StorageField
fn parse(parser: &mut Parser<'_, '_>) -> ParseResult<StorageField>
Auto Trait Implementations
impl RefUnwindSafe for StorageField
impl Send for StorageField
impl Sync for StorageField
impl Unpin for StorageField
impl UnwindSafe for StorageField
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