Trait amplify::Dumb

source ·
pub trait Dumb
where Self: Sized,
{ // Required method fn dumb() -> 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§

source

fn dumb() -> Self

Returns an object initialized with dumb data

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Dumb for u8

source§

fn dumb() -> Self

Implementors§

source§

impl<T, const LEN: usize> Dumb for Array<T, LEN>
where T: Dumb + Copy,