pub trait LogElementSpace: Space {
// Required method
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§
Sourcefn 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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
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