Dumb

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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,