Enum wasmer_types::types::ArchivedMutability
source · #[repr(u8)]pub enum ArchivedMutability {
Const = 0,
Var = 1,
}
Expand description
An archived Mutability
Variants§
Const = 0
The archived counterpart of Mutability::Const
Var = 1
The archived counterpart of Mutability::Var
Trait Implementations§
source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedMutabilitywhere
<__C as Fallible>::Error: Source,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedMutabilitywhere
<__C as Fallible>::Error: Source,
source§unsafe fn check_bytes(
value: *const Self,
context: &mut __C,
) -> Result<(), <__C as Fallible>::Error>
unsafe fn check_bytes( value: *const Self, context: &mut __C, ) -> Result<(), <__C as Fallible>::Error>
Checks whether the given pointer points to a valid value within the
given context. Read more
source§impl Debug for ArchivedMutability
impl Debug for ArchivedMutability
source§impl PartialEq<ArchivedMutability> for Mutability
impl PartialEq<ArchivedMutability> for Mutability
source§fn eq(&self, other: &ArchivedMutability) -> bool
fn eq(&self, other: &ArchivedMutability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<Mutability> for ArchivedMutability
impl PartialEq<Mutability> for ArchivedMutability
source§fn eq(&self, other: &Mutability) -> bool
fn eq(&self, other: &Mutability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ArchivedMutability> for Mutability
impl PartialOrd<ArchivedMutability> for Mutability
source§fn partial_cmp(&self, other: &ArchivedMutability) -> Option<Ordering>
fn partial_cmp(&self, other: &ArchivedMutability) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Mutability> for ArchivedMutability
impl PartialOrd<Mutability> for ArchivedMutability
source§fn partial_cmp(&self, other: &Mutability) -> Option<Ordering>
fn partial_cmp(&self, other: &Mutability) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Portable for ArchivedMutability
Auto Trait Implementations§
impl Freeze for ArchivedMutability
impl RefUnwindSafe for ArchivedMutability
impl Send for ArchivedMutability
impl Sync for ArchivedMutability
impl Unpin for ArchivedMutability
impl UnwindSafe for ArchivedMutability
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.