Trait relearn::spaces::LogElementSpace
source · [−]pub trait LogElementSpace: Space {
fn log_element<L: StatsLogger + ?Sized>(
&self,
name: &'static str,
element: &Self::Element,
logger: &mut L
) -> Result<(), LogError>;
}
Expand description
A space whose elements can be logged to a StatsLogger
Required Methods
fn log_element<L: StatsLogger + ?Sized>(
&self,
name: &'static str,
element: &Self::Element,
logger: &mut L
) -> Result<(), LogError>
fn log_element<L: StatsLogger + ?Sized>(
&self,
name: &'static str,
element: &Self::Element,
logger: &mut L
) -> Result<(), LogError>
Log an element of the space
Implementors
impl LogElementSpace for BooleanSpace
impl LogElementSpace for IndexSpace
Log the index as a sample from 0..N
impl LogElementSpace for SingletonSpace
impl<A: LogElementSpace, B: LogElementSpace> LogElementSpace for TupleSpace2<A, B>
impl<A: LogElementSpace, B: LogElementSpace, C: LogElementSpace> LogElementSpace for TupleSpace3<A, B, C>
impl<A: LogElementSpace, B: LogElementSpace, C: LogElementSpace, D: LogElementSpace> LogElementSpace for TupleSpace4<A, B, C, D>
impl<A: LogElementSpace, B: LogElementSpace, C: LogElementSpace, D: LogElementSpace, E: LogElementSpace> LogElementSpace for TupleSpace5<A, B, C, D, E>
impl<AS: LogElementSpace, FSI: LogElementSpace> LogElementSpace for InnerStepObsSpace<AS, FSI>
impl<OS: LogElementSpace, AS: LogElementSpace, FSI: LogElementSpace> LogElementSpace for MetaObservationSpace<OS, AS, FSI>
impl<S: LogElementSpace> LogElementSpace for NonEmptyFeatures<S>
impl<S: LogElementSpace> LogElementSpace for OptionSpace<S>
impl<S: LogElementSpace, D: Dimension> LogElementSpace for NdArraySpace<S, D>
impl<S: LogElementSpace, const N: usize> LogElementSpace for PowerSpace<S, N>
impl<S: Space, const N: usize> LogElementSpace for ArraySpace<S, N>
impl<T: Bounded + PartialOrd + Into<f64> + Clone + Send> LogElementSpace for IntervalSpace<T>
impl<T: Indexed + Clone + Send> LogElementSpace for IndexedTypeSpace<T>
Log the index as a sample from 0..N