pub struct ParameterKey(pub u32);Expand description
Key for a global simulation parameter (e.g., learning rate, reward scale).
Parameters are registered at world creation; invalid keys are rejected at ingress.
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for ParameterKey
impl Clone for ParameterKey
Source§fn clone(&self) -> ParameterKey
fn clone(&self) -> ParameterKey
Returns a duplicate 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 ParameterKey
impl Debug for ParameterKey
Source§impl Display for ParameterKey
impl Display for ParameterKey
Source§impl From<u32> for ParameterKey
impl From<u32> for ParameterKey
Source§impl Hash for ParameterKey
impl Hash for ParameterKey
Source§impl Ord for ParameterKey
impl Ord for ParameterKey
Source§fn cmp(&self, other: &ParameterKey) -> Ordering
fn cmp(&self, other: &ParameterKey) -> 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 for ParameterKey
impl PartialEq for ParameterKey
Source§impl PartialOrd for ParameterKey
impl PartialOrd for ParameterKey
impl Copy for ParameterKey
impl Eq for ParameterKey
impl StructuralPartialEq for ParameterKey
Auto Trait Implementations§
impl Freeze for ParameterKey
impl RefUnwindSafe for ParameterKey
impl Send for ParameterKey
impl Sync for ParameterKey
impl Unpin for ParameterKey
impl UnwindSafe for ParameterKey
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