Struct renforce::environment::Finite [] [src]

pub struct Finite { /* fields omitted */ }

Finite

Represents a Space with finitely many elements, {0, 1, 2, ..., size-1}

Methods

impl Finite
[src]

Returns a new Finite with the given number of elements

Trait Implementations

impl Debug for Finite
[src]

Formats the value using the given formatter.

impl Clone for Finite
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Finite
[src]

impl Space for Finite
[src]

The type of members of the Space

Returns a random element of this space

impl FiniteSpace for Finite
[src]

(Determistically) Returns a vector of all elements of this space

Returns the number of elements in this space

Returns the index of an element in the vector returned by enumerate