Enum system_env::SystemArch
source · pub enum SystemArch {
Show 13 variants
X86,
X64,
Arm,
Arm64,
LongArm64,
M68k,
Mips,
Mips64,
Powerpc,
Powerpc64,
Riscv64,
S390x,
Sparc64,
}
Expand description
Architecture of the host 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§impl<'de> Deserialize<'de> for SystemArch
impl<'de> Deserialize<'de> for SystemArch
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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
impl Copy for SystemArch
impl Eq for SystemArch
impl StructuralEq for SystemArch
impl StructuralPartialEq for SystemArch
Auto Trait Implementations§
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