pub struct RewardBreakdown {
pub terminal: f32,
pub damage: f32,
pub level: f32,
pub board: f32,
pub no_progress: f32,
}Expand description
Per-step reward decomposition for debug output.
Fields§
§terminal: f32Terminal outcome contribution.
damage: f32Damage-differential shaping contribution.
level: f32Level-race shaping contribution.
board: f32Live-stage board shaping contribution.
no_progress: f32No-progress shaping contribution.
Implementations§
Trait Implementations§
Source§impl Clone for RewardBreakdown
impl Clone for RewardBreakdown
Source§fn clone(&self) -> RewardBreakdown
fn clone(&self) -> RewardBreakdown
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 RewardBreakdown
impl Debug for RewardBreakdown
Source§impl Default for RewardBreakdown
impl Default for RewardBreakdown
Source§fn default() -> RewardBreakdown
fn default() -> RewardBreakdown
Returns the “default value” for a type. Read more
impl Copy for RewardBreakdown
Auto Trait Implementations§
impl Freeze for RewardBreakdown
impl RefUnwindSafe for RewardBreakdown
impl Send for RewardBreakdown
impl Sync for RewardBreakdown
impl Unpin for RewardBreakdown
impl UnsafeUnpin for RewardBreakdown
impl UnwindSafe for RewardBreakdown
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more