Struct border_tch_agent::sac::ActorConfig
source · pub struct ActorConfig<P: OutDim> { /* private fields */ }Expand description
Configuration of Actor.
Implementations§
source§impl<P> ActorConfig<P>where
P: DeserializeOwned + Serialize + OutDim,
impl<P> ActorConfig<P>where P: DeserializeOwned + Serialize + OutDim,
sourcepub fn opt_config(self, v: OptimizerConfig) -> Self
pub fn opt_config(self, v: OptimizerConfig) -> Self
Sets optimizer configuration.
Trait Implementations§
source§impl<P: Clone + OutDim> Clone for ActorConfig<P>
impl<P: Clone + OutDim> Clone for ActorConfig<P>
source§fn clone(&self) -> ActorConfig<P>
fn clone(&self) -> ActorConfig<P>
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<P: OutDim> Default for ActorConfig<P>
impl<P: OutDim> Default for ActorConfig<P>
source§impl<'de, P> Deserialize<'de> for ActorConfig<P>where
P: Deserialize<'de> + OutDim,
impl<'de, P> Deserialize<'de> for ActorConfig<P>where P: Deserialize<'de> + OutDim,
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<P: PartialEq + OutDim> PartialEq<ActorConfig<P>> for ActorConfig<P>
impl<P: PartialEq + OutDim> PartialEq<ActorConfig<P>> for ActorConfig<P>
source§fn eq(&self, other: &ActorConfig<P>) -> bool
fn eq(&self, other: &ActorConfig<P>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<P: OutDim> StructuralPartialEq for ActorConfig<P>
Auto Trait Implementations§
impl<P> RefUnwindSafe for ActorConfig<P>where P: RefUnwindSafe,
impl<P> Send for ActorConfig<P>where P: Send,
impl<P> Sync for ActorConfig<P>where P: Sync,
impl<P> Unpin for ActorConfig<P>where P: Unpin,
impl<P> UnwindSafe for ActorConfig<P>where P: UnwindSafe,
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