pub enum TestVia {
Attribute,
Project,
}Expand description
Which vouch earned a row in a tests model: an attribute-carrying def
declared in the file (Attribute), or, absent that, the project model
placing the file’s unit inside a project marked test (Project).
The two are checked in that order – a file’s own attributed def is always
the more specific vouch, so Attribute wins whenever both would apply.
Variants§
Attribute
A def in the file carries a test-runner attribute.
Project
No such def; the file’s unit in the project model is a test project.
Trait Implementations§
impl Copy for TestVia
impl Eq for TestVia
impl StructuralPartialEq for TestVia
Auto Trait Implementations§
impl Freeze for TestVia
impl RefUnwindSafe for TestVia
impl Send for TestVia
impl Sync for TestVia
impl Unpin for TestVia
impl UnsafeUnpin for TestVia
impl UnwindSafe for TestVia
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more