[][src]Struct rsrl_domains::Trajectory

pub struct Trajectory<S, A> {
    pub start: Observation<S>,
    pub steps: Vec<(Observation<S>, A, Reward)>,
}

Fields

start: Observation<S>steps: Vec<(Observation<S>, A, Reward)>

Implementations

impl<S, A> Trajectory<S, A>[src]

pub fn n_states(&self) -> usize[src]

pub fn n_transitions(&self) -> usize[src]

pub fn first(&self) -> Transition<&S, &A>[src]

pub fn get(&self, index: usize) -> Transition<&S, &A>[src]

pub fn iter<'a>(&'a self) -> TrajectoryIter<'a, S, A>[src]

pub fn total_reward(&self) -> Reward[src]

pub fn to_batch(&self) -> Batch<S, A>[src]

pub fn into_batch(self) -> Batch<S, A> where
    S: Clone,
    A: Clone
[src]

Auto Trait Implementations

impl<S, A> RefUnwindSafe for Trajectory<S, A> where
    A: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, A> Send for Trajectory<S, A> where
    A: Send,
    S: Send

impl<S, A> Sync for Trajectory<S, A> where
    A: Sync,
    S: Sync

impl<S, A> Unpin for Trajectory<S, A> where
    A: Unpin,
    S: Unpin

impl<S, A> UnwindSafe for Trajectory<S, A> where
    A: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,