pub struct Trajectory<B: Backend, S, A, C> {
pub timesteps: Vec<TimeStep<B, S, A, C>>,
}Available on crate feature
rl only.Expand description
A trajectory, i.e. a list of ordered TimeStep.
Fields§
§timesteps: Vec<TimeStep<B, S, A, C>>A list of ordered TimeSteps.
Implementations§
Trait Implementations§
Source§impl<B: Clone + Backend, S: Clone, A: Clone, C: Clone> Clone for Trajectory<B, S, A, C>
impl<B: Clone + Backend, S: Clone, A: Clone, C: Clone> Clone for Trajectory<B, S, A, C>
Source§fn clone(&self) -> Trajectory<B, S, A, C>
fn clone(&self) -> Trajectory<B, S, A, C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<B, S, A, C> Freeze for Trajectory<B, S, A, C>
impl<B, S, A, C> RefUnwindSafe for Trajectory<B, S, A, C>where
C: RefUnwindSafe,
S: RefUnwindSafe,
A: RefUnwindSafe,
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B, S, A, C> Send for Trajectory<B, S, A, C>
impl<B, S, A, C> Sync for Trajectory<B, S, A, C>
impl<B, S, A, C> Unpin for Trajectory<B, S, A, C>where
C: Unpin,
S: Unpin,
A: Unpin,
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
<B as BackendTypes>::QuantizedTensorPrimitive: Unpin,
impl<B, S, A, C> UnsafeUnpin for Trajectory<B, S, A, C>
impl<B, S, A, C> UnwindSafe for Trajectory<B, S, A, C>where
C: UnwindSafe,
S: UnwindSafe,
A: UnwindSafe,
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more