Trait Value

Source
pub trait Value {
    // Required method
    fn read<S>(: &mut S) -> Self
       where S: Source;
}
Expand description

A random value.

Required Methods§

Source

fn read<S>(: &mut S) -> Self
where S: Source,

Read a random value.

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 Value for f32

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for f64

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for i8

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for i16

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for i32

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for i64

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for isize

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for u8

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for u16

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for u32

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for u64

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Source§

impl Value for usize

Source§

fn read<S>(source: &mut S) -> Self
where S: Source,

Implementors§