Struct sway_ast::StorageField
source · [−]pub struct StorageField {
pub name: Ident,
pub colon_token: ColonToken,
pub ty: Ty,
pub eq_token: EqToken,
pub initializer: Expr,
}
Fields
name: Ident
colon_token: ColonToken
ty: Ty
eq_token: EqToken
initializer: 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
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