Trait amplify::DumbDefault
source · [−]pub trait DumbDefault where
Self: Sized, {
fn dumb_default() -> Self;
}
Expand description
Used as an alternative to default for test and prototyping purposes, when a type can’t have a default value, but you need to generate some dumb data.
Required Methods
fn dumb_default() -> Self
fn dumb_default() -> Self
Returns an object initialized with dumb data