Struct hotshot_macros::TestDataBuilder
source · pub(crate) struct TestDataBuilder {
pub(crate) ty: Option<TypePath>,
pub(crate) imply: Option<ExprPath>,
pub(crate) builder_impl: Option<ExprPath>,
pub(crate) version: Option<ExprPath>,
pub(crate) test_name: Option<Ident>,
pub(crate) metadata: Option<Expr>,
pub(crate) ignore: Option<LitBool>,
}Expand description
Builder for TestData.
Fields§
§ty: Option<TypePath>type
imply: Option<ExprPath>impl
builder_impl: Option<ExprPath>builder implementation
version: Option<ExprPath>impl
test_name: Option<Ident>name of test
metadata: Option<Expr>test description
ignore: Option<LitBool>whether or not to ignore the test
Implementations§
source§impl TestDataBuilder
impl TestDataBuilder
sourcepub fn builder_impl(&mut self, value: ExprPath) -> &mut Self
pub fn builder_impl(&mut self, value: ExprPath) -> &mut Self
builder implementation
sourcepub(crate) fn build(&self) -> Result<TestData, TestDataBuilderError>
pub(crate) fn build(&self) -> Result<TestData, TestDataBuilderError>
sourcepub(crate) fn create_empty() -> Self
pub(crate) fn create_empty() -> Self
Create an empty builder, with all fields set to None or PhantomData.
Trait Implementations§
source§impl Clone for TestDataBuilder
impl Clone for TestDataBuilder
source§fn clone(&self) -> TestDataBuilder
fn clone(&self) -> TestDataBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TestDataBuilder
impl RefUnwindSafe for TestDataBuilder
impl !Send for TestDataBuilder
impl !Sync for TestDataBuilder
impl Unpin for TestDataBuilder
impl UnwindSafe for TestDataBuilder
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§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)