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§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.