pub struct ArbitraryOptions {
pub path: Path,
pub cfg: Option<Meta>,
}
Expand description
Options to customize the generated code.
Fields§
§path: Path
A path to the arbitrary
crate, e.g. ::arbitrary
if it is a dependency of the crate the generated code will
be included in.
cfg: Option<Meta>
Whether and how to cfg-gate the arbitrary usage, if Some
the code will be gated with #[cfg]
/#[cfg_attr]
using the specified clause.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArbitraryOptions
impl RefUnwindSafe for ArbitraryOptions
impl !Send for ArbitraryOptions
impl !Sync for ArbitraryOptions
impl Unpin for ArbitraryOptions
impl UnwindSafe for ArbitraryOptions
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