pub struct RustTestBinaryKind(pub Cow<'static, str>);
Expand description
Information about the kind of a Rust test binary.
Kinds are used to generate RustBinaryId
instances, and to figure out whether some
environment variables should be set.
Tuple Fields§
§0: Cow<'static, str>
Implementations§
source§impl RustTestBinaryKind
impl RustTestBinaryKind
sourcepub const PROC_MACRO: Self = _
pub const PROC_MACRO: Self = _
The “proc-macro” kind, used for tests within procedural macros.
sourcepub fn new(kind: impl Into<Cow<'static, str>>) -> Self
pub fn new(kind: impl Into<Cow<'static, str>>) -> Self
Creates a new RustTestBinaryKind
from a string.
Trait Implementations§
source§impl Clone for RustTestBinaryKind
impl Clone for RustTestBinaryKind
source§fn clone(&self) -> RustTestBinaryKind
fn clone(&self) -> RustTestBinaryKind
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 RustTestBinaryKind
impl Debug for RustTestBinaryKind
source§impl<'de> Deserialize<'de> for RustTestBinaryKind
impl<'de> Deserialize<'de> for RustTestBinaryKind
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 RustTestBinaryKind
impl Display for RustTestBinaryKind
source§impl Hash for RustTestBinaryKind
impl Hash for RustTestBinaryKind
source§impl Ord for RustTestBinaryKind
impl Ord for RustTestBinaryKind
source§fn cmp(&self, other: &RustTestBinaryKind) -> Ordering
fn cmp(&self, other: &RustTestBinaryKind) -> 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 RustTestBinaryKind
impl PartialEq for RustTestBinaryKind
source§impl PartialOrd for RustTestBinaryKind
impl PartialOrd for RustTestBinaryKind
source§impl Serialize for RustTestBinaryKind
impl Serialize for RustTestBinaryKind
impl Eq for RustTestBinaryKind
impl StructuralPartialEq for RustTestBinaryKind
Auto Trait Implementations§
impl Freeze for RustTestBinaryKind
impl RefUnwindSafe for RustTestBinaryKind
impl Send for RustTestBinaryKind
impl Sync for RustTestBinaryKind
impl Unpin for RustTestBinaryKind
impl UnwindSafe for RustTestBinaryKind
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
)