gym_rs/spaces/
space.rs

1/// An interface that deals with subspaces.
2pub trait Space<T>
3where
4    T: PartialOrd + PartialEq,
5{
6    /// Checks for the existence of a value within the defined subspace.
7    ///
8    /// Returns `true` if the value exists, `false` otherwise.
9    fn contains(&self, value: T) -> bool;
10}