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 for RustBinaryIdNameAndKind<'a>
impl<'a> PartialEq 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 for RustBinaryIdNameAndKind<'a>
impl<'a> PartialOrd 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 moreimpl<'a> Copy for RustBinaryIdNameAndKind<'a>
impl<'a> Eq for RustBinaryIdNameAndKind<'a>
impl<'a> StructuralPartialEq for RustBinaryIdNameAndKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for RustBinaryIdNameAndKind<'a>
impl<'a> RefUnwindSafe for RustBinaryIdNameAndKind<'a>
impl<'a> Send for RustBinaryIdNameAndKind<'a>
impl<'a> Sync for RustBinaryIdNameAndKind<'a>
impl<'a> Unpin for RustBinaryIdNameAndKind<'a>
impl<'a> UnwindSafe for RustBinaryIdNameAndKind<'a>
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)