pub enum BuildPlatform {
Target,
Host,
}Expand description
The platform a binary was built for: the host or the target.
This is relevant for cross-compilation; if that isn’t occurring, binaries are built for the target platform.
Variants§
Trait Implementations§
Source§impl Clone for BuildPlatform
impl Clone for BuildPlatform
Source§fn clone(&self) -> BuildPlatform
fn clone(&self) -> BuildPlatform
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BuildPlatform
Source§impl Debug for BuildPlatform
impl Debug for BuildPlatform
Source§impl<'de> Deserialize<'de> for BuildPlatform
impl<'de> Deserialize<'de> for BuildPlatform
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 BuildPlatform
impl Display for BuildPlatform
impl Eq for BuildPlatform
Source§impl Hash for BuildPlatform
impl Hash for BuildPlatform
Source§impl Ord for BuildPlatform
impl Ord for BuildPlatform
Source§fn cmp(&self, other: &BuildPlatform) -> Ordering
fn cmp(&self, other: &BuildPlatform) -> Ordering
1.21.0 (const: unstable) · 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 BuildPlatform
impl PartialEq for BuildPlatform
Source§impl PartialOrd for BuildPlatform
impl PartialOrd for BuildPlatform
Source§impl Serialize for BuildPlatform
impl Serialize for BuildPlatform
impl StructuralPartialEq for BuildPlatform
Auto Trait Implementations§
impl Freeze for BuildPlatform
impl RefUnwindSafe for BuildPlatform
impl Send for BuildPlatform
impl Sync for BuildPlatform
impl Unpin for BuildPlatform
impl UnsafeUnpin for BuildPlatform
impl UnwindSafe for BuildPlatform
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