rlmesh::spaces::Discrete
The integers start .. start + n.
struct Discrete(/* private field */)Associated functions
Methods
from_spec
associated function[source]fn from_spec(spec: SpaceSpec) -> Result<Self>A space for spec; a spec of another kind is the ValueError
class.
new
associated function[source]fn new(n: i64, options: DiscreteOptions) -> Result<Discrete>Discrete(n, start, dtype). n <= 0, a dtype other than Int64,
Int32 or Uint8, or a range the dtype cannot hold is the ValueError
class.
n
method[source]fn n(&self) -> i64The number of values.
start
method[source]fn start(&self) -> i64The first value.
Trait implementations
- impl Clone for Discrete
- impl Deref for Discrete
- impl Display for Discrete
- impl Debug for Discrete
- impl PartialEq for Discrete
- impl PartialEq<Space> for Discrete
- impl PartialEq<Discrete> for Space
- impl From<Discrete> for Space
- impl From<Discrete> for SpaceSpec
- impl From<&Discrete> for SpaceSpec
- impl TryFrom<Space> for Discrete