pub struct RustNonTestBinaryKind(pub Cow<'static, str>);
Expand description
Information about the kind of a Rust non-test binary.
This is part of RustNonTestBinarySummary
, and is used to determine runtime environment
variables.
Tuple Fields§
§0: Cow<'static, str>
Implementations§
source§impl RustNonTestBinaryKind
impl RustNonTestBinaryKind
sourcepub const DYLIB: Self = _
pub const DYLIB: Self = _
The “dylib” kind, used for dynamic libraries (.so
on Linux). Also used for
.pdb and other similar files on Windows.
sourcepub fn new(kind: impl Into<Cow<'static, str>>) -> Self
pub fn new(kind: impl Into<Cow<'static, str>>) -> Self
Creates a new RustNonTestBinaryKind
from a string.
Trait Implementations§
source§impl Clone for RustNonTestBinaryKind
impl Clone for RustNonTestBinaryKind
source§fn clone(&self) -> RustNonTestBinaryKind
fn clone(&self) -> RustNonTestBinaryKind
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 RustNonTestBinaryKind
impl Debug for RustNonTestBinaryKind
source§impl<'de> Deserialize<'de> for RustNonTestBinaryKind
impl<'de> Deserialize<'de> for RustNonTestBinaryKind
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 RustNonTestBinaryKind
impl Display for RustNonTestBinaryKind
source§impl Hash for RustNonTestBinaryKind
impl Hash for RustNonTestBinaryKind
source§impl Ord for RustNonTestBinaryKind
impl Ord for RustNonTestBinaryKind
source§fn cmp(&self, other: &RustNonTestBinaryKind) -> Ordering
fn cmp(&self, other: &RustNonTestBinaryKind) -> 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 RustNonTestBinaryKind
impl PartialEq for RustNonTestBinaryKind
source§impl PartialOrd for RustNonTestBinaryKind
impl PartialOrd for RustNonTestBinaryKind
source§impl Serialize for RustNonTestBinaryKind
impl Serialize for RustNonTestBinaryKind
impl Eq for RustNonTestBinaryKind
impl StructuralPartialEq for RustNonTestBinaryKind
Auto Trait Implementations§
impl Freeze for RustNonTestBinaryKind
impl RefUnwindSafe for RustNonTestBinaryKind
impl Send for RustNonTestBinaryKind
impl Sync for RustNonTestBinaryKind
impl Unpin for RustNonTestBinaryKind
impl UnwindSafe for RustNonTestBinaryKind
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
)