pub enum RustBinaryIdNameAndKind<'a> {
None,
NameOnly {
binary_name: &'a str,
},
NameAndKind {
kind: &'a str,
binary_name: &'a str,
},
}
Expand description
The name and kind of a Rust binary, present within a RustBinaryId
.
Part of RustBinaryIdComponents
.
Variants§
None
The binary has no name or kind.
NameOnly
The binary has a name but no kind.
NameAndKind
The binary has a name and kind.
Trait Implementations§
source§impl<'a> Clone for RustBinaryIdNameAndKind<'a>
impl<'a> Clone for RustBinaryIdNameAndKind<'a>
source§fn clone(&self) -> RustBinaryIdNameAndKind<'a>
fn clone(&self) -> RustBinaryIdNameAndKind<'a>
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<'a> Debug for RustBinaryIdNameAndKind<'a>
impl<'a> Debug for RustBinaryIdNameAndKind<'a>
source§impl<'a> Ord for RustBinaryIdNameAndKind<'a>
impl<'a> Ord for RustBinaryIdNameAndKind<'a>
source§fn cmp(&self, other: &RustBinaryIdNameAndKind<'a>) -> Ordering
fn cmp(&self, other: &RustBinaryIdNameAndKind<'a>) -> 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<'a> PartialEq<RustBinaryIdNameAndKind<'a>> for RustBinaryIdNameAndKind<'a>
impl<'a> PartialEq<RustBinaryIdNameAndKind<'a>> for RustBinaryIdNameAndKind<'a>
source§fn eq(&self, other: &RustBinaryIdNameAndKind<'a>) -> bool
fn eq(&self, other: &RustBinaryIdNameAndKind<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd<RustBinaryIdNameAndKind<'a>> for RustBinaryIdNameAndKind<'a>
impl<'a> PartialOrd<RustBinaryIdNameAndKind<'a>> for RustBinaryIdNameAndKind<'a>
source§fn partial_cmp(&self, other: &RustBinaryIdNameAndKind<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &RustBinaryIdNameAndKind<'a>) -> 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 more