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§
Source§impl Hash for TestType
impl Hash for TestType
Source§impl PartialEq for TestType
impl PartialEq for TestType
impl Copy for TestType
impl Eq for TestType
impl StructuralPartialEq for TestType
Auto Trait Implementations§
impl Freeze for TestType
impl RefUnwindSafe for TestType
impl Send for TestType
impl Sync for TestType
impl Unpin for TestType
impl UnwindSafe for TestType
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
🔬This is a nightly-only experimental API. (
test
)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
)Source§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
Source§type Owned = T
type Owned = T
🔬This is a nightly-only experimental API. (
test
)The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> T
fn to_owned(&self) -> T
🔬This is a nightly-only experimental API. (
test
)Creates owned data from borrowed data, usually by cloning. Read more
Source§fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬This is a nightly-only experimental API. (
test
)Uses borrowed data to replace owned data, usually by cloning. Read more