pub struct MemoryTypeField {
pub offset: u64,
pub ty: Type,
pub fact: Option<Fact>,
pub readonly: bool,
}
Expand description
One field in a memory type.
Fields§
§offset: u64
The offset of this field in the memory type.
ty: Type
The primitive type of the value in this field. Accesses to the field must use this type (i.e., cannot bitcast/type-pun in memory).
fact: Option<Fact>
A proof-carrying-code fact about this value, if any.
readonly: bool
Whether this field is read-only, i.e., stores should be disallowed.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryTypeField
impl Clone for MemoryTypeField
Source§fn clone(&self) -> MemoryTypeField
fn clone(&self) -> MemoryTypeField
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Hash for MemoryTypeField
impl Hash for MemoryTypeField
Source§impl PartialEq for MemoryTypeField
impl PartialEq for MemoryTypeField
impl StructuralPartialEq for MemoryTypeField
Auto Trait Implementations§
impl Freeze for MemoryTypeField
impl RefUnwindSafe for MemoryTypeField
impl Send for MemoryTypeField
impl Sync for MemoryTypeField
impl Unpin for MemoryTypeField
impl UnwindSafe for MemoryTypeField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)