Enum wasmer_types::types::ArchivedType
source · #[repr(u8)]pub enum ArchivedType {
I32 = 0,
I64 = 1,
F32 = 2,
F64 = 3,
V128 = 4,
ExternRef = 5,
FuncRef = 6,
ExceptionRef = 7,
}
Expand description
An archived Type
Variants§
I32 = 0
The archived counterpart of Type::I32
I64 = 1
The archived counterpart of Type::I64
F32 = 2
The archived counterpart of Type::F32
F64 = 3
The archived counterpart of Type::F64
V128 = 4
The archived counterpart of Type::V128
ExternRef = 5
The archived counterpart of Type::ExternRef
FuncRef = 6
The archived counterpart of Type::FuncRef
ExceptionRef = 7
The archived counterpart of Type::ExceptionRef
Trait Implementations§
source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedTypewhere
<__C as Fallible>::Error: Source,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedTypewhere
<__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 ArchivedType
impl Debug for ArchivedType
source§impl PartialEq<ArchivedType> for Type
impl PartialEq<ArchivedType> for Type
source§fn eq(&self, other: &ArchivedType) -> bool
fn eq(&self, other: &ArchivedType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<Type> for ArchivedType
impl PartialEq<Type> for ArchivedType
impl Portable for ArchivedType
Auto Trait Implementations§
impl Freeze for ArchivedType
impl RefUnwindSafe for ArchivedType
impl Send for ArchivedType
impl Sync for ArchivedType
impl Unpin for ArchivedType
impl UnwindSafe for ArchivedType
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.