pub trait BoundedValue<B = Self>: Sized {
    // Required method
    fn gen_bounded<D: Driver>(
        driver: &mut D,
        min: Bound<&B>,
        max: Bound<&B>
    ) -> Option<Self>;

    // Provided method
    fn mutate_bounded<D: Driver>(
        &mut self,
        driver: &mut D,
        min: Bound<&B>,
        max: Bound<&B>
    ) -> Option<()> { ... }
}

Required Methods§

source

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&B>, max: Bound<&B> ) -> Option<Self>

Provided Methods§

source

fn mutate_bounded<D: Driver>( &mut self, driver: &mut D, min: Bound<&B>, max: Bound<&B> ) -> Option<()>

Implementations on Foreign Types§

source§

impl BoundedValue<AtomicU32> for AtomicU32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<NonZeroU128> for NonZeroU128

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<NonZeroU8> for NonZeroU8

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<isize> for AtomicIsize

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&isize>, max: Bound<&isize> ) -> Option<Self>

source§

impl BoundedValue<u32> for NonZeroU32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&u32>, max: Bound<&u32> ) -> Option<Self>

source§

impl BoundedValue<u32> for u32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<NonZeroU64> for NonZeroU64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<AtomicI16> for AtomicI16

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<NonZeroIsize> for NonZeroIsize

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<NonZeroI32> for NonZeroI32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<i16> for AtomicI16

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&i16>, max: Bound<&i16> ) -> Option<Self>

source§

impl BoundedValue<i8> for i8

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<AtomicUsize> for AtomicUsize

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<AtomicU16> for AtomicU16

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<NonZeroI64> for NonZeroI64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<u8> for NonZeroU8

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&u8>, max: Bound<&u8> ) -> Option<Self>

source§

impl BoundedValue<NonZeroI8> for NonZeroI8

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<u128> for NonZeroU128

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&u128>, max: Bound<&u128> ) -> Option<Self>

source§

impl BoundedValue<i16> for NonZeroI16

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&i16>, max: Bound<&i16> ) -> Option<Self>

source§

impl BoundedValue<u8> for AtomicU8

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&u8>, max: Bound<&u8> ) -> Option<Self>

source§

impl BoundedValue<isize> for isize

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<char> for char

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<i128> for NonZeroI128

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&i128>, max: Bound<&i128> ) -> Option<Self>

source§

impl BoundedValue<f32> for f32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<AtomicI64> for AtomicI64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<u64> for AtomicU64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&u64>, max: Bound<&u64> ) -> Option<Self>

source§

impl BoundedValue<i8> for AtomicI8

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&i8>, max: Bound<&i8> ) -> Option<Self>

source§

impl BoundedValue<i32> for i32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<u8> for u8

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<u32> for AtomicU32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&u32>, max: Bound<&u32> ) -> Option<Self>

source§

impl BoundedValue<u16> for u16

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<i32> for AtomicI32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&i32>, max: Bound<&i32> ) -> Option<Self>

source§

impl BoundedValue<AtomicU8> for AtomicU8

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<AtomicIsize> for AtomicIsize

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<u64> for u64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<NonZeroI16> for NonZeroI16

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<NonZeroU16> for NonZeroU16

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<NonZeroI128> for NonZeroI128

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<NonZeroUsize> for NonZeroUsize

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<f64> for f64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<usize> for AtomicUsize

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&usize>, max: Bound<&usize> ) -> Option<Self>

source§

impl BoundedValue<i16> for i16

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<i128> for i128

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<AtomicI8> for AtomicI8

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<i64> for AtomicI64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&i64>, max: Bound<&i64> ) -> Option<Self>

source§

impl BoundedValue<u64> for NonZeroU64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&u64>, max: Bound<&u64> ) -> Option<Self>

source§

impl BoundedValue<usize> for usize

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<u16> for NonZeroU16

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&u16>, max: Bound<&u16> ) -> Option<Self>

source§

impl BoundedValue<NonZeroU32> for NonZeroU32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<i64> for i64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<i32> for NonZeroI32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&i32>, max: Bound<&i32> ) -> Option<Self>

source§

impl BoundedValue<isize> for NonZeroIsize

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&isize>, max: Bound<&isize> ) -> Option<Self>

source§

impl BoundedValue<u128> for u128

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<usize> for NonZeroUsize

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&usize>, max: Bound<&usize> ) -> Option<Self>

source§

impl BoundedValue<i8> for NonZeroI8

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&i8>, max: Bound<&i8> ) -> Option<Self>

source§

impl BoundedValue<i64> for NonZeroI64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&i64>, max: Bound<&i64> ) -> Option<Self>

source§

impl BoundedValue<AtomicU64> for AtomicU64

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<AtomicI32> for AtomicI32

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&Self>, max: Bound<&Self> ) -> Option<Self>

source§

impl BoundedValue<u16> for AtomicU16

source§

fn gen_bounded<D: Driver>( driver: &mut D, min: Bound<&u16>, max: Bound<&u16> ) -> Option<Self>

Implementors§