Struct gym_rs::envs::classical_control::mountain_car::MountainCarObservation
source · pub struct MountainCarObservation {
pub position: O64,
pub velocity: O64,
}
Expand description
Utility structure intended to reduce confusion around meaning of properties.
Fields§
§position: O64
The position the car exists on the mountain.
velocity: O64
The velocity the car is travelling at.
Implementations§
Trait Implementations§
source§impl Clone for MountainCarObservation
impl Clone for MountainCarObservation
source§fn clone(&self) -> MountainCarObservation
fn clone(&self) -> MountainCarObservation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MountainCarObservation
impl Debug for MountainCarObservation
source§impl From<MountainCarObservation> for Vec<f64>
impl From<MountainCarObservation> for Vec<f64>
source§fn from(o: MountainCarObservation) -> Self
fn from(o: MountainCarObservation) -> Self
Converts to this type from the input type.
source§impl Ord for MountainCarObservation
impl Ord for MountainCarObservation
source§fn cmp(&self, other: &MountainCarObservation) -> Ordering
fn cmp(&self, other: &MountainCarObservation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<MountainCarObservation> for MountainCarObservation
impl PartialEq<MountainCarObservation> for MountainCarObservation
source§fn eq(&self, other: &MountainCarObservation) -> bool
fn eq(&self, other: &MountainCarObservation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MountainCarObservation> for MountainCarObservation
impl PartialOrd<MountainCarObservation> for MountainCarObservation
source§fn partial_cmp(&self, other: &MountainCarObservation) -> Option<Ordering>
fn partial_cmp(&self, other: &MountainCarObservation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sample for MountainCarObservation
impl Sample for MountainCarObservation
source§impl SampleUniform for MountainCarObservation
impl SampleUniform for MountainCarObservation
§type Sampler = UniformMountainCarObservation
type Sampler = UniformMountainCarObservation
The
UniformSampler
implementation supporting type X
.source§impl Serialize for MountainCarObservation
impl Serialize for MountainCarObservation
impl Copy for MountainCarObservation
impl Eq for MountainCarObservation
impl StructuralEq for MountainCarObservation
impl StructuralPartialEq for MountainCarObservation
Auto Trait Implementations§
impl RefUnwindSafe for MountainCarObservation
impl Send for MountainCarObservation
impl Sync for MountainCarObservation
impl Unpin for MountainCarObservation
impl UnwindSafe for MountainCarObservation
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<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
impl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere Borrowed: SampleUniform,
source§fn borrow(&self) -> &Borrowed
fn borrow(&self) -> &Borrowed
Immutably borrows from an owned value. See
Borrow::borrow
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.