Enum cargo_gazelle::platforms::PlatformVariant
source · pub enum PlatformVariant {
Aarch64MacOS,
X86_64MacOS,
Aarch64Linux,
X86_64Linux,
}
Expand description
Defines the various platforms we support building for.
Variants§
Aarch64MacOS
aarch64-apple-darwin
X86_64MacOS
x86_64-apple-darwin
Aarch64Linux
aarch64-unknown-linux-gnu
X86_64Linux
x86_64-unknown-linux-gnu
Implementations§
source§impl PlatformVariant
impl PlatformVariant
const ALL: &'static [PlatformVariant] = _
pub fn spec(&self) -> &PlatformSpec
pub fn all() -> &'static [PlatformVariant]
Trait Implementations§
source§impl Clone for PlatformVariant
impl Clone for PlatformVariant
source§fn clone(&self) -> PlatformVariant
fn clone(&self) -> PlatformVariant
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 PlatformVariant
impl Debug for PlatformVariant
source§impl Hash for PlatformVariant
impl Hash for PlatformVariant
source§impl Ord for PlatformVariant
impl Ord for PlatformVariant
source§fn cmp(&self, other: &PlatformVariant) -> Ordering
fn cmp(&self, other: &PlatformVariant) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PlatformVariant
impl PartialEq for PlatformVariant
source§impl PartialOrd for PlatformVariant
impl PartialOrd for PlatformVariant
source§impl ToBazelDefinition for PlatformVariant
impl ToBazelDefinition for PlatformVariant
impl Copy for PlatformVariant
impl Eq for PlatformVariant
impl StructuralPartialEq for PlatformVariant
Auto Trait Implementations§
impl Freeze for PlatformVariant
impl RefUnwindSafe for PlatformVariant
impl Send for PlatformVariant
impl Sync for PlatformVariant
impl Unpin for PlatformVariant
impl UnwindSafe for PlatformVariant
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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§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<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.