pub struct TestParts<'a> {
pub name: &'a str,
pub name_span: Span,
pub meta: Option<&'a Spanned>,
pub body: &'a Spanned,
}Expand description
The parts of one deftest form.
Fields§
§name: &'a str§name_span: Span§meta: Option<&'a Spanned>The (blue-test-meta …) node, when the test declares one.
body: &'a SpannedTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TestParts<'a>
impl<'a> RefUnwindSafe for TestParts<'a>
impl<'a> Send for TestParts<'a>
impl<'a> Sync for TestParts<'a>
impl<'a> Unpin for TestParts<'a>
impl<'a> UnsafeUnpin for TestParts<'a>
impl<'a> UnwindSafe for TestParts<'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