Struct wast::StructField
source · [−]pub struct StructField<'a> {
pub id: Option<Id<'a>>,
pub mutable: bool,
pub ty: StorageType<'a>,
}
Expand description
A field of a struct type.
Fields
id: Option<Id<'a>>
An optional identifier for name resolution.
mutable: bool
Whether this field may be mutated or not.
ty: StorageType<'a>
The storage type stored in this field.
Trait Implementations
sourceimpl<'a> Clone for StructField<'a>
impl<'a> Clone for StructField<'a>
sourcefn clone(&self) -> StructField<'a>
fn clone(&self) -> StructField<'a>
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<'a> RefUnwindSafe for StructField<'a>
impl<'a> Send for StructField<'a>
impl<'a> Sync for StructField<'a>
impl<'a> Unpin for StructField<'a>
impl<'a> UnwindSafe for StructField<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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