[−][src]Enum rsrl_domains::Observation
Container class for data associated with a domain observation.
Variants
Fully observed state of the environment.
Partially observed state of the environment.
Terminal state of the environment.
Implementations
impl<S> Observation<S>
[src]
pub fn state(&self) -> &S
[src]
Helper function returning a reference to the state values for the given observation.
pub fn map<O>(&self, f: impl Fn(&S) -> O) -> Observation<O>
[src]
pub fn map_into<O>(&self, f: impl Fn(&S) -> O) -> O
[src]
pub fn borrowed(&self) -> Observation<&S>
[src]
pub fn is_full(&self) -> bool
[src]
Returns true if the state was fully observed, otherwise false.
pub fn is_partial(&self) -> bool
[src]
Returns true if the state was only partially observed, otherwise false.
pub fn is_terminal(&self) -> bool
[src]
Returns true if the observation is the terminal state, otherwise false.
Trait Implementations
impl<S: Clone> Clone for Observation<S>
[src]
fn clone(&self) -> Observation<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Copy> Copy for Observation<S>
[src]
impl<S: Debug> Debug for Observation<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Observation<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Observation<S> where
S: Send,
S: Send,
impl<S> Sync for Observation<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Observation<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Observation<S> where
S: 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>,