pub struct DiscoveredTest {
pub name: SharedString,
pub span: Span,
}Expand description
Metadata describing one discovered language-level test item.
Fields§
§name: SharedString§span: SpanImplementations§
Source§impl DiscoveredTest
impl DiscoveredTest
Sourcepub fn new(name: impl Into<SharedString>, span: Span) -> Self
pub fn new(name: impl Into<SharedString>, span: Span) -> Self
Creates a discovered test result.
Trait Implementations§
Source§impl Clone for DiscoveredTest
impl Clone for DiscoveredTest
Source§fn clone(&self) -> DiscoveredTest
fn clone(&self) -> DiscoveredTest
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 moreSource§impl Debug for DiscoveredTest
impl Debug for DiscoveredTest
impl Eq for DiscoveredTest
Source§impl PartialEq for DiscoveredTest
impl PartialEq for DiscoveredTest
Source§fn eq(&self, other: &DiscoveredTest) -> bool
fn eq(&self, other: &DiscoveredTest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiscoveredTest
Auto Trait Implementations§
impl Freeze for DiscoveredTest
impl RefUnwindSafe for DiscoveredTest
impl Send for DiscoveredTest
impl Sync for DiscoveredTest
impl Unpin for DiscoveredTest
impl UnsafeUnpin for DiscoveredTest
impl UnwindSafe for DiscoveredTest
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