pub struct ValueArgumentResult {
pub winner: String,
pub loser: String,
pub value_at_stake: String,
pub loser_value_shift: f64,
pub winner_value_shift: f64,
}Expand description
Output of a value argument resolution.
Fields§
§winner: StringName of the character who won the argument.
loser: StringName of the character who lost the argument.
value_at_stake: StringThe Schwartz value that was contested.
loser_value_shift: f64Magnitude of the shift applied to the loser’s value. Range: [0.0, 1.0].
winner_value_shift: f64Small self-reinforcement applied to the winner’s value. Range: [0.0, 0.1].
Trait Implementations§
Source§impl Clone for ValueArgumentResult
impl Clone for ValueArgumentResult
Source§fn clone(&self) -> ValueArgumentResult
fn clone(&self) -> ValueArgumentResult
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 moreAuto Trait Implementations§
impl Freeze for ValueArgumentResult
impl RefUnwindSafe for ValueArgumentResult
impl Send for ValueArgumentResult
impl Sync for ValueArgumentResult
impl Unpin for ValueArgumentResult
impl UnsafeUnpin for ValueArgumentResult
impl UnwindSafe for ValueArgumentResult
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