pub enum TestType {
UnitTest,
IntegrationTest,
DocTest,
Unknown,
}🔬 This is a nightly-only experimental API. (
test)Expand description
Type of the test according to the rust book conventions.
Variants
UnitTest
🔬 This is a nightly-only experimental API. (
test)Unit-tests are expected to be in the src folder of the crate.
IntegrationTest
🔬 This is a nightly-only experimental API. (
test)Integration-style tests are expected to be in the tests folder of the crate.
DocTest
🔬 This is a nightly-only experimental API. (
test)Doctests are created by the librustdoc manually, so it’s a different type of test.
Unknown
🔬 This is a nightly-only experimental API. (
test)Tests for the sources that don’t follow the project layout convention
(e.g. tests in raw main.rs compiled by calling rustc --test directly).
Trait Implementations
impl Copy for TestType
sourceimpl Eq for TestType
sourceimpl StructuralEq for TestType
sourceimpl StructuralPartialEq for TestType
sourceAuto Trait Implementations
impl RefUnwindSafe for TestType
impl Send for TestType
impl Sync for TestType
impl Unpin for TestType
impl UnwindSafe for TestType
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
source🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more