pub struct ObsBatch {
pub n: usize,
pub m: usize,
pub buf: Vec<u8>,
}Expand description
Consists the observation part of a batch in SimpleReplayBuffer.
Fields§
§n: usizeThe number of samples in the batch.
m: usizeThe length of a sample in bytes.
buf: Vec<u8>The buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObsBatch
impl RefUnwindSafe for ObsBatch
impl Send for ObsBatch
impl Sync for ObsBatch
impl Unpin for ObsBatch
impl UnwindSafe for ObsBatch
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