pub struct BatchOutMinimalI16Buffers {
pub obs: Vec<i16>,
pub masks: Vec<u8>,
pub rewards: Vec<f32>,
pub terminated: Vec<bool>,
pub truncated: Vec<bool>,
pub actor: Vec<i8>,
pub decision_kind: Vec<i8>,
pub decision_id: Vec<u32>,
pub engine_status: Vec<u8>,
pub spec_hash: Vec<u64>,
}Expand description
Owned buffers for minimal output with i16 observations.
Fields§
§obs: Vec<i16>Observation buffer (len = num_envs * OBS_LEN).
masks: Vec<u8>Action mask buffer (len = num_envs * ACTION_SPACE_SIZE).
rewards: Vec<f32>Reward buffer (len = num_envs).
terminated: Vec<bool>Terminal flags (len = num_envs).
truncated: Vec<bool>Truncation flags (len = num_envs).
actor: Vec<i8>Actor perspective (len = num_envs).
decision_kind: Vec<i8>Decision kind (len = num_envs).
decision_id: Vec<u32>Decision id (len = num_envs).
engine_status: Vec<u8>Engine status code (len = num_envs).
spec_hash: Vec<u64>Encoding spec hash (len = num_envs).
Implementations§
Trait Implementations§
Source§impl Clone for BatchOutMinimalI16Buffers
impl Clone for BatchOutMinimalI16Buffers
Source§fn clone(&self) -> BatchOutMinimalI16Buffers
fn clone(&self) -> BatchOutMinimalI16Buffers
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BatchOutMinimalI16Buffers
impl RefUnwindSafe for BatchOutMinimalI16Buffers
impl Send for BatchOutMinimalI16Buffers
impl Sync for BatchOutMinimalI16Buffers
impl Unpin for BatchOutMinimalI16Buffers
impl UnwindSafe for BatchOutMinimalI16Buffers
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more