Struct rustlearn::utils::EncodableRng [] [src]

pub struct EncodableRng {
    pub rng: StdRng,
}

Wrapper for making random number generators serializable. Does no actual encoding, and merely creates a new generator on decoding.

Fields

rng: StdRng

Methods

impl EncodableRng
[src]

fn new() -> EncodableRng

Trait Implementations

impl Clone for EncodableRng
[src]

fn clone(&self) -> EncodableRng

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Default for EncodableRng
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl Encodable for EncodableRng
[src]

fn encode<S: Encoder>(&self, _: &mut S) -> Result<(), S::Error>

impl Decodable for EncodableRng
[src]

fn decode<D: Decoder>(_: &mut D) -> Result<Self, D::Error>