pub trait CompiledAction:
Copy
+ Send
+ Sync
+ Debug {
// Required methods
fn pattern(space: &ActionSpace, i: u64) -> Self;
fn from_flat(actions: Actions<'_>, i: usize) -> Self;
fn from_joint(space: &ActionSpace, index: usize) -> Self;
}Expand description
An action of a compiled environment.
Required Methods§
Sourcefn pattern(space: &ActionSpace, i: u64) -> Self
fn pattern(space: &ActionSpace, i: u64) -> Self
Action i of the fixed pseudo-random sequence of
ActionValue::pattern.
Sourcefn from_flat(actions: Actions<'_>, i: usize) -> Self
fn from_flat(actions: Actions<'_>, i: usize) -> Self
The action of environment i in a flat buffer.
Sourcefn from_joint(space: &ActionSpace, index: usize) -> Self
fn from_joint(space: &ActionSpace, index: usize) -> Self
The joint action index (ActionValue::from_joint).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".