[−][src]Struct rsrl_domains::Transition
Container class for data associated with a domain transition.
Fields
from: Observation<S>
State transitioned from, s
.
action: A
Action taken to initiate the transition (control tasks).
reward: Reward
Reward obtained from the transition.
to: Observation<S>
State transitioned to, s'
.
Implementations
impl<S, A> Transition<S, A>
[src]
pub fn states(&self) -> (&S, &S)
[src]
Return references to the from
and to
states associated with this
transition.
pub fn borrowed(&self) -> Transition<&S, &A>
[src]
pub fn map_states<O>(self, f: impl Fn(&S) -> O) -> Transition<O, A>
[src]
Apply a closure to the from
and to
states associated with this
transition.
pub fn terminated(&self) -> bool
[src]
Returns true if the transition ends in a terminal state.
pub fn replace_action<T>(self, action: T) -> Transition<S, T>
[src]
Replace the action associated with this transition and return a new instance.
pub fn drop_action(self) -> Transition<S, ()>
[src]
Drop the action associated with this transition and return a new instance.
pub fn negate_reward(self) -> Transition<S, A>
[src]
Trait Implementations
impl<S: Clone, A: Clone> Clone for Transition<S, A>
[src]
fn clone(&self) -> Transition<S, A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Copy, A: Copy> Copy for Transition<S, A>
[src]
impl<S: Debug, A: Debug> Debug for Transition<S, A>
[src]
impl<'s, 'a, S, A> FromIterator<Transition<&'s S, &'a A>> for Vec<Transition<S, A>>
[src]
fn from_iter<I: IntoIterator<Item = Transition<&'s S, &'a A>>>(iter: I) -> Self
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, u8>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, u16>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, f32>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, f64>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, u32>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, u64>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, usize>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, i8>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, i16>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, i32>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, i64>
[src]
fn into(self) -> Transition<S, ()>
[src]
impl<S> Into<Transition<S, ()>> for Transition<S, isize>
[src]
fn into(self) -> Transition<S, ()>
[src]
Auto Trait Implementations
impl<S, A> RefUnwindSafe for Transition<S, A> where
A: RefUnwindSafe,
S: RefUnwindSafe,
A: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, A> Send for Transition<S, A> where
A: Send,
S: Send,
A: Send,
S: Send,
impl<S, A> Sync for Transition<S, A> where
A: Sync,
S: Sync,
A: Sync,
S: Sync,
impl<S, A> Unpin for Transition<S, A> where
A: Unpin,
S: Unpin,
A: Unpin,
S: Unpin,
impl<S, A> UnwindSafe for Transition<S, A> where
A: UnwindSafe,
S: UnwindSafe,
A: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,