Trait LogElementSpace

Source
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§

Source

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§

Source§

impl LogElementSpace for BooleanSpace

Source§

impl LogElementSpace for IndexSpace

Log the index as a sample from 0..N

Source§

impl LogElementSpace for SingletonSpace

Source§

impl<A: LogElementSpace, B: LogElementSpace> LogElementSpace for TupleSpace2<A, B>

Source§

impl<A: LogElementSpace, B: LogElementSpace, C: LogElementSpace> LogElementSpace for TupleSpace3<A, B, C>

Source§

impl<A: LogElementSpace, B: LogElementSpace, C: LogElementSpace, D: LogElementSpace> LogElementSpace for TupleSpace4<A, B, C, D>

Source§

impl<A: LogElementSpace, B: LogElementSpace, C: LogElementSpace, D: LogElementSpace, E: LogElementSpace> LogElementSpace for TupleSpace5<A, B, C, D, E>

Source§

impl<AS: LogElementSpace, FSI: LogElementSpace> LogElementSpace for InnerStepObsSpace<AS, FSI>

Source§

impl<OS: LogElementSpace, AS: LogElementSpace, FSI: LogElementSpace> LogElementSpace for MetaObservationSpace<OS, AS, FSI>

Source§

impl<S: LogElementSpace> LogElementSpace for NonEmptyFeatures<S>

Source§

impl<S: LogElementSpace> LogElementSpace for OptionSpace<S>

Source§

impl<S: LogElementSpace, D: Dimension> LogElementSpace for NdArraySpace<S, D>

Source§

impl<S: LogElementSpace, const N: usize> LogElementSpace for PowerSpace<S, N>

Source§

impl<S: Space, const N: usize> LogElementSpace for ArraySpace<S, N>

Source§

impl<T: Bounded + PartialOrd + Into<f64> + Clone + Send> LogElementSpace for IntervalSpace<T>

Source§

impl<T: Indexed + Clone + Send> LogElementSpace for IndexedTypeSpace<T>

Log the index as a sample from 0..N

Source§

impl<const W: usize, const H: usize> LogElementSpace for AssistantObsSpace<W, H>

Source§

impl<const W: usize, const H: usize> LogElementSpace for PrincipalObsSpace<W, H>