pub struct Platform { /* private fields */ }Expand description
A plain platform identity value backed by a platform triple.
Implementations§
Source§impl Platform
impl Platform
Sourcepub const fn new(triple: PlatformTriple) -> Self
pub const fn new(triple: PlatformTriple) -> Self
Creates a platform from an already modeled platform triple.
Sourcepub const fn triple(&self) -> &PlatformTriple
pub const fn triple(&self) -> &PlatformTriple
Returns the platform triple.
Sourcepub fn into_triple(self) -> PlatformTriple
pub fn into_triple(self) -> PlatformTriple
Consumes the platform and returns the platform triple.
Trait Implementations§
Source§impl From<PlatformTriple> for Platform
impl From<PlatformTriple> for Platform
Source§fn from(triple: PlatformTriple) -> Self
fn from(triple: PlatformTriple) -> Self
Converts to this type from the input type.
Source§impl Ord for Platform
impl Ord for Platform
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 PartialOrd for Platform
impl PartialOrd 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 UnsafeUnpin 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