pub enum Platform {
Show 21 variants
NoArch,
Unknown,
Linux32,
Linux64,
LinuxAarch64,
LinuxArmV6l,
LinuxArmV7l,
LinuxPpc64le,
LinuxPpc64,
LinuxPpc,
LinuxS390X,
LinuxRiscv32,
LinuxRiscv64,
Osx64,
OsxArm64,
Win32,
Win64,
WinArm64,
EmscriptenWasm32,
WasiWasm32,
ZosZ,
}
Expand description
A platform supported by Conda.
Variants§
NoArch
Unknown
Linux32
Linux64
LinuxAarch64
LinuxArmV6l
LinuxArmV7l
LinuxPpc64le
LinuxPpc64
LinuxPpc
LinuxS390X
LinuxRiscv32
LinuxRiscv64
Osx64
OsxArm64
Win32
Win64
WinArm64
EmscriptenWasm32
WasiWasm32
ZosZ
Implementations§
Source§impl Platform
impl Platform
Sourcepub const fn current() -> Platform
pub const fn current() -> Platform
Returns the platform for which the current binary was build.
Sourcepub const fn is_windows(self) -> bool
pub const fn is_windows(self) -> bool
Returns true if the platform is a windows based platform.
Sourcepub fn only_platform(&self) -> Option<&str>
pub fn only_platform(&self) -> Option<&str>
Return only the platform (linux, win, or osx from the platform enum)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Platform
impl<'de> Deserialize<'de> for Platform
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 IntoEnumIterator for Platform
impl IntoEnumIterator for Platform
Source§impl Ord for Platform
impl Ord for Platform
Source§impl PartialOrd for Platform
impl PartialOrd for Platform
impl Copy for Platform
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more