pub struct Consideration {
pub name: String,
pub curve: ResponseCurve,
pub weight: f32,
}Expand description
A single input consideration for an action.
Fields§
§name: String§curve: ResponseCurveHow to evaluate this consideration’s raw input.
weight: f32Weight in the final multiplication.
Implementations§
Trait Implementations§
Source§impl Clone for Consideration
impl Clone for Consideration
Source§fn clone(&self) -> Consideration
fn clone(&self) -> Consideration
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 Consideration
impl RefUnwindSafe for Consideration
impl Send for Consideration
impl Sync for Consideration
impl Unpin for Consideration
impl UnsafeUnpin for Consideration
impl UnwindSafe for Consideration
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