pub struct SimpleReplayBufferConfig {
pub capacity: usize,
pub seed: u64,
pub per_config: Option<PerConfig>,
}
Expand description
Configuration of SimpleReplayBuffer.
Fields§
§capacity: usize
Capacity of the buffer.
seed: u64
Random seed for sampling.
per_config: Option<PerConfig>
Config for prioritized sampling.
Implementations§
Source§impl SimpleReplayBufferConfig
impl SimpleReplayBufferConfig
Sourcepub fn per_config(self, per_config: Option<PerConfig>) -> Self
pub fn per_config(self, per_config: Option<PerConfig>) -> Self
Sets configuration of PER.
Trait Implementations§
Source§impl Clone for SimpleReplayBufferConfig
impl Clone for SimpleReplayBufferConfig
Source§fn clone(&self) -> SimpleReplayBufferConfig
fn clone(&self) -> SimpleReplayBufferConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SimpleReplayBufferConfig
impl Debug for SimpleReplayBufferConfig
Source§impl Default for SimpleReplayBufferConfig
impl Default for SimpleReplayBufferConfig
Source§impl<'de> Deserialize<'de> for SimpleReplayBufferConfig
impl<'de> Deserialize<'de> for SimpleReplayBufferConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SimpleReplayBufferConfig
impl PartialEq for SimpleReplayBufferConfig
Source§impl Serialize for SimpleReplayBufferConfig
impl Serialize for SimpleReplayBufferConfig
impl StructuralPartialEq for SimpleReplayBufferConfig
Auto Trait Implementations§
impl Freeze for SimpleReplayBufferConfig
impl RefUnwindSafe for SimpleReplayBufferConfig
impl Send for SimpleReplayBufferConfig
impl Sync for SimpleReplayBufferConfig
impl Unpin for SimpleReplayBufferConfig
impl UnwindSafe for SimpleReplayBufferConfig
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