Trait border_core::ExperienceBufferBase
source · pub trait ExperienceBufferBase {
type PushedItem;
// Required methods
fn push(&mut self, tr: Self::PushedItem) -> 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.
Required Associated Types§
sourcetype PushedItem
type PushedItem
Items pushed into the buffer.
Required Methods§
sourcefn push(&mut self, tr: Self::PushedItem) -> Result<()>
fn push(&mut self, tr: Self::PushedItem) -> Result<()>
Pushes a transition into the buffer.