Enum maturin::PlatformTag
source · pub enum PlatformTag {
Manylinux {
x: u16,
y: u16,
},
Musllinux {
x: u16,
y: u16,
},
Linux,
}
Expand description
Decides how to handle manylinux and musllinux compliance
Variants§
Manylinux
Use the manylinux_x_y tag
Musllinux
Use the musllinux_x_y tag
Linux
Use the native linux tag
Implementations§
source§impl PlatformTag
impl PlatformTag
sourcepub fn manylinux1() -> Self
pub fn manylinux1() -> Self
manylinux1
aka manylinux_2_5
sourcepub fn manylinux2010() -> Self
pub fn manylinux2010() -> Self
manylinux2010
aka manylinux_2_12
sourcepub fn manylinux2014() -> Self
pub fn manylinux2014() -> Self
manylinux2014
aka manylinux_2_17
sourcepub fn is_portable(&self) -> bool
pub fn is_portable(&self) -> bool
Is this a portable linux platform tag
Only manylinux and musllinux are portable
sourcepub fn is_manylinux(&self) -> bool
pub fn is_manylinux(&self) -> bool
Is this a manylinux platform tag
sourcepub fn is_musllinux(&self) -> bool
pub fn is_musllinux(&self) -> bool
Is this a musllinux platform tag
sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Is it supported by Rust compiler and manylinux project
Trait Implementations§
source§impl Clone for PlatformTag
impl Clone for PlatformTag
source§fn clone(&self) -> PlatformTag
fn clone(&self) -> PlatformTag
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 PlatformTag
impl Debug for PlatformTag
source§impl<'de> Deserialize<'de> for PlatformTag
impl<'de> Deserialize<'de> for PlatformTag
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 PlatformTag
impl Display for PlatformTag
source§impl FromStr for PlatformTag
impl FromStr for PlatformTag
source§impl Ord for PlatformTag
impl Ord for PlatformTag
source§fn cmp(&self, other: &PlatformTag) -> Ordering
fn cmp(&self, other: &PlatformTag) -> 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 PlatformTag
impl PartialEq for PlatformTag
source§fn eq(&self, other: &PlatformTag) -> bool
fn eq(&self, other: &PlatformTag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PlatformTag
impl PartialOrd for PlatformTag
source§fn partial_cmp(&self, other: &PlatformTag) -> Option<Ordering>
fn partial_cmp(&self, other: &PlatformTag) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for PlatformTag
impl Serialize for PlatformTag
impl Copy for PlatformTag
impl Eq for PlatformTag
impl StructuralPartialEq for PlatformTag
Auto Trait Implementations§
impl Freeze for PlatformTag
impl RefUnwindSafe for PlatformTag
impl Send for PlatformTag
impl Sync for PlatformTag
impl Unpin for PlatformTag
impl UnwindSafe for PlatformTag
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<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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.