Enum seacan::test::NameSpec [−][src]
Expand description
Specify tests and benches based on their name
Variants
Exact(String)
Expand description
Only exact matches (i.e. cargo test -- --exact
)
Substring(String)
Expand description
Matches anything with the substring in it (the default behavior of
cargo test
)
Expand description
Matches every test and bench
Implementations
impl NameSpec
[src]
impl NameSpec
[src]#[must_use]pub fn exact(s: impl Into<String>) -> Self
[src]
#[must_use]pub fn exact(s: impl Into<String>) -> Self
[src]Helper for Self::Exact
#[must_use]pub fn substring(s: impl Into<String>) -> Self
[src]
#[must_use]pub fn substring(s: impl Into<String>) -> Self
[src]Helper for Self::substring
Trait Implementations
impl Eq for NameSpec
[src]
impl StructuralEq for NameSpec
[src]
impl StructuralPartialEq for NameSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for NameSpec
impl Send for NameSpec
impl Sync for NameSpec
impl Unpin for NameSpec
impl UnwindSafe for NameSpec
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more