pub struct BatchOutMinimal<'a> {
pub obs: &'a mut [i32],
pub masks: &'a mut [u8],
pub rewards: &'a mut [f32],
pub terminated: &'a mut [bool],
pub truncated: &'a mut [bool],
pub actor: &'a mut [i8],
pub decision_id: &'a mut [u32],
pub engine_status: &'a mut [u8],
pub spec_hash: &'a mut [u64],
}Expand description
Minimal RL batch output, filled in-place.
Fields§
§obs: &'a mut [i32]§masks: &'a mut [u8]§rewards: &'a mut [f32]§terminated: &'a mut [bool]§truncated: &'a mut [bool]§actor: &'a mut [i8]§decision_id: &'a mut [u32]§engine_status: &'a mut [u8]§spec_hash: &'a mut [u64]Auto Trait Implementations§
impl<'a> Freeze for BatchOutMinimal<'a>
impl<'a> RefUnwindSafe for BatchOutMinimal<'a>
impl<'a> Send for BatchOutMinimal<'a>
impl<'a> Sync for BatchOutMinimal<'a>
impl<'a> Unpin for BatchOutMinimal<'a>
impl<'a> !UnwindSafe for BatchOutMinimal<'a>
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> 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