pub trait ExperienceBufferBase {
type Item;
// Required methods
fn push(&mut self, tr: Self::Item) -> Result<()>;
fn len(&self) -> usize;
}
Expand description
Interface of buffers of experiences from environments.
You can push items, which has an arbitrary type. This trait is usually required by processes sampling experiences.