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§

source

type PushedItem

Items pushed into the buffer.

Required Methods§

source

fn push(&mut self, tr: Self::PushedItem) -> Result<()>

Pushes a transition into the buffer.

source

fn len(&self) -> usize

The number of samples in the buffer.

Implementors§