Trait renforce::environment::FiniteSpace [] [src]

pub trait FiniteSpace: Space {
    fn enumerate(&self) -> Vec<Self::Element>;

    fn size(&self) -> usize { ... }
    fn index(&self, elm: &Self::Element) -> isize { ... }
}

Finite Space Trait

Represents a space with finitely many members

Required Methods

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

Provided Methods

Returns the number of elements in this space

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

Implementors