pub trait Arbitrarywhere
Self: Sized,{
// Required method
fn any() -> Self;
// Provided method
fn any_array<const MAX_ARRAY_LENGTH: usize>() -> [Self; MAX_ARRAY_LENGTH] { ... }
}
Expand description
This trait should be used to generate symbolic variables that represent any valid value of its type.
Required Methods§
Provided Methods§
fn any_array<const MAX_ARRAY_LENGTH: usize>() -> [Self; MAX_ARRAY_LENGTH]
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl Arbitrary for char
impl Arbitrary for char
Validate that a char is not outside the ranges [0x0, 0xD7FF] and [0xE000, 0x10FFFF] Ref: https://doc.rust-lang.org/stable/nomicon/what-unsafe-does.html