gymnasia 3.0.5

OpenAI Gymnasium environments in pure Rust
Documentation
1
2
3
4
5
6
7
8
9
10
use std::fmt::Debug;

/// A space describes the set of valid values for actions or observations.
pub trait Space: Clone + Debug {
    /// The type of elements in this space.
    type Element;

    /// Check whether `value` belongs to this space.
    fn contains(&self, value: &Self::Element) -> bool;
}