Struct cranelift_codegen::ir::MemoryTypeField
source · 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
source§fn eq(&self, other: &MemoryTypeField) -> bool
fn eq(&self, other: &MemoryTypeField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MemoryTypeField
Auto Trait Implementations§
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