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.


rng: StdRng


impl EncodableRng

fn new() -> EncodableRng

Trait Implementations

impl Clone for EncodableRng

fn clone(&self) -> EncodableRng

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Default for EncodableRng

fn default() -> Self

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

impl Encodable for EncodableRng

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

impl Decodable for EncodableRng

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