Enum holochain_wasmer_host::prelude::Architecture [−]
#[non_exhaustive] pub enum Architecture {}Show variants
Unknown, Arm(ArmArchitecture), AmdGcn, Aarch64(Aarch64Architecture), Asmjs, Avr, Hexagon, X86_32(X86_32Architecture), Mips32(Mips32Architecture), Mips64(Mips64Architecture), Msp430, Nvptx64, Powerpc, Powerpc64, Powerpc64le, Riscv32(Riscv32Architecture), Riscv64(Riscv64Architecture), S390x, Sparc, Sparc64, Sparcv9, Wasm32, Wasm64, X86_64,
Expand description
The “architecture” field, which in some cases also specifies a specific subarchitecture.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations
impl Architecture
impl Architecture
pub fn endianness(self) -> Result<Endianness, ()>
pub fn endianness(self) -> Result<Endianness, ()>
Return the endianness of this architecture.
pub fn pointer_width(self) -> Result<PointerWidth, ()>
pub fn pointer_width(self) -> Result<PointerWidth, ()>
Return the pointer bit width of this target’s architecture.
impl Architecture
impl Architecture
pub const fn host() -> Architecture
pub const fn host() -> Architecture
Return the architecture for the current host.
Trait Implementations
impl Clone for Architecture
impl Clone for Architecture
pub fn clone(&self) -> Architecture
pub fn clone(&self) -> Architecture
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for Architecture
impl Debug for Architecture
impl Display for Architecture
impl Display for Architecture
impl FromStr for Architecture
impl FromStr for Architecture
impl Hash for Architecture
impl Hash for Architecture
impl PartialEq<Architecture> for Architecture
impl PartialEq<Architecture> for Architecture
pub fn eq(&self, other: &Architecture) -> bool
pub fn eq(&self, other: &Architecture) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &Architecture) -> bool
pub fn ne(&self, other: &Architecture) -> bool
This method tests for !=
.
impl Copy for Architecture
impl Eq for Architecture
impl StructuralEq for Architecture
impl StructuralPartialEq for Architecture
Auto Trait Implementations
impl RefUnwindSafe for Architecture
impl Send for Architecture
impl Sync for Architecture
impl Unpin for Architecture
impl UnwindSafe for Architecture
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V