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§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.