pub struct DeclaredTest<'a> {
pub module: &'a str,
pub name: &'a str,
pub entry: &'a FnEntry,
}Expand description
One test fn, and the module that declares it.
Fields§
§module: &'a strThe module the test belongs to, whose private declarations it sees.
name: &'a strThe test’s own name.
entry: &'a FnEntryThe declaration itself, with the capabilities its call graph requires.
Implementations§
Source§impl DeclaredTest<'_>
impl DeclaredTest<'_>
Sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
The name the runner reports and --filter matches, such as
text.countsWords.
Trait Implementations§
Source§impl<'a> Clone for DeclaredTest<'a>
impl<'a> Clone for DeclaredTest<'a>
Source§fn clone(&self) -> DeclaredTest<'a>
fn clone(&self) -> DeclaredTest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for DeclaredTest<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeclaredTest<'a>
impl<'a> RefUnwindSafe for DeclaredTest<'a>
impl<'a> Send for DeclaredTest<'a>
impl<'a> Sync for DeclaredTest<'a>
impl<'a> Unpin for DeclaredTest<'a>
impl<'a> UnsafeUnpin for DeclaredTest<'a>
impl<'a> UnwindSafe for DeclaredTest<'a>
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