Enum proto_pdk_api::HostArch
source · pub enum HostArch {
Show 13 variants
X86,
X64,
Arm,
Arm64,
LongArm64,
M68k,
Mips,
Mips64,
Powerpc,
Powerpc64,
Riscv64,
S390x,
Sparc64,
}
Expand description
Architecture of the system environment.
Variants§
Implementations§
source§impl SystemArch
impl SystemArch
sourcepub fn from_env() -> SystemArch
pub fn from_env() -> SystemArch
Return an instance derived from [std::env::costs::ARCH
].
sourcepub fn to_rust_arch(&self) -> String
pub fn to_rust_arch(&self) -> String
Convert to a [std::env::costs::ARCH
] compatible string.
Trait Implementations§
source§impl Clone for SystemArch
impl Clone for SystemArch
source§fn clone(&self) -> SystemArch
fn clone(&self) -> SystemArch
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 SystemArch
impl Debug for SystemArch
source§impl Default for SystemArch
impl Default for SystemArch
source§fn default() -> SystemArch
fn default() -> SystemArch
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SystemArch
impl<'de> Deserialize<'de> for SystemArch
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SystemArch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SystemArch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for SystemArch
impl Display for SystemArch
source§impl Hash for SystemArch
impl Hash for SystemArch
source§impl PartialEq for SystemArch
impl PartialEq for SystemArch
source§fn eq(&self, other: &SystemArch) -> bool
fn eq(&self, other: &SystemArch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SystemArch
impl Serialize for SystemArch
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for SystemArch
impl Eq for SystemArch
impl StructuralPartialEq for SystemArch
Auto Trait Implementations§
impl Freeze for SystemArch
impl RefUnwindSafe for SystemArch
impl Send for SystemArch
impl Sync for SystemArch
impl Unpin for SystemArch
impl UnwindSafe for SystemArch
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