pub struct Metadata<T> {
pub render_modes: &'static [RenderMode],
pub render_fps: u32,
/* private fields */
}
Expand description
Defines a set of common properties used to describe the environment further.
Can be dynamically altered and outputted during a state output to describe the contents of the state further.
Fields§
§render_modes: &'static [RenderMode]
Defines the render modes supported by the environment.
render_fps: u32
Defines the fps used by the internal renderer.
Implementations§
Trait Implementations§
source§impl Default for Metadata<CartPoleEnv>
impl Default for Metadata<CartPoleEnv>
source§impl Default for Metadata<MountainCarEnv>
impl Default for Metadata<MountainCarEnv>
source§impl<T: Ord> Ord for Metadata<T>
impl<T: Ord> Ord for Metadata<T>
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<T: PartialEq> PartialEq<Metadata<T>> for Metadata<T>
impl<T: PartialEq> PartialEq<Metadata<T>> for Metadata<T>
source§impl<T: PartialOrd> PartialOrd<Metadata<T>> for Metadata<T>
impl<T: PartialOrd> PartialOrd<Metadata<T>> for Metadata<T>
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 moreimpl<T: Copy> Copy for Metadata<T>
impl<T: Eq> Eq for Metadata<T>
impl<T> StructuralEq for Metadata<T>
impl<T> StructuralPartialEq for Metadata<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Metadata<T>where T: RefUnwindSafe,
impl<T> Send for Metadata<T>where T: Send,
impl<T> Sync for Metadata<T>where T: Sync,
impl<T> Unpin for Metadata<T>where T: Unpin,
impl<T> UnwindSafe for Metadata<T>where T: 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
§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.