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<'de> Deserialize<'de> for MemoryTypeField
impl<'de> Deserialize<'de> for MemoryTypeField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MemoryTypeField
impl Hash for MemoryTypeField
Source§impl PartialEq for MemoryTypeField
impl PartialEq for MemoryTypeField
Source§impl Serialize for MemoryTypeField
impl Serialize 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