pub struct MemoryType(/* private fields */);
Expand description
An opaque reference to a memory type.
A MemoryType
is a descriptor of a struct layout in memory, with
types and proof-carrying-code facts optionally attached to the
fields.
Implementations§
source§impl MemoryType
impl MemoryType
source§impl MemoryType
impl MemoryType
sourcepub fn with_number(n: u32) -> Option<Self>
pub fn with_number(n: u32) -> Option<Self>
Create a new memory type reference from its number.
This method is for use by the parser.
Trait Implementations§
source§impl Clone for MemoryType
impl Clone for MemoryType
source§fn clone(&self) -> MemoryType
fn clone(&self) -> MemoryType
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 Debug for MemoryType
impl Debug for MemoryType
source§impl Display for MemoryType
impl Display for MemoryType
source§impl EntityRef for MemoryType
impl EntityRef for MemoryType
source§impl From<MemoryType> for AnyEntity
impl From<MemoryType> for AnyEntity
source§fn from(r: MemoryType) -> Self
fn from(r: MemoryType) -> Self
Converts to this type from the input type.
source§impl Hash for MemoryType
impl Hash for MemoryType
source§impl Ord for MemoryType
impl Ord for MemoryType
source§fn cmp(&self, other: &MemoryType) -> Ordering
fn cmp(&self, other: &MemoryType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MemoryType
impl PartialEq for MemoryType
source§impl PartialOrd for MemoryType
impl PartialOrd for MemoryType
source§impl ReservedValue for MemoryType
impl ReservedValue for MemoryType
source§fn reserved_value() -> MemoryType
fn reserved_value() -> MemoryType
Create an instance of the reserved value.
source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Checks whether value is the reserved one.
impl Copy for MemoryType
impl Eq for MemoryType
impl StructuralPartialEq for MemoryType
Auto Trait Implementations§
impl Freeze for MemoryType
impl RefUnwindSafe for MemoryType
impl Send for MemoryType
impl Sync for MemoryType
impl Unpin for MemoryType
impl UnwindSafe for MemoryType
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
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.