pub struct Knob {
pub name: &'static str,
pub current: f64,
pub kinds: &'static [&'static str],
pub set: fn(&mut Weights, f64),
}Expand description
One hand-set weight: its name, current value, the outcome kinds it weighs (its evidence), and how a candidate sets it.
Fields§
§name: &'static str§current: f64§kinds: &'static [&'static str]§set: fn(&mut Weights, f64)Auto Trait Implementations§
impl Freeze for Knob
impl RefUnwindSafe for Knob
impl Send for Knob
impl Sync for Knob
impl Unpin for Knob
impl UnsafeUnpin for Knob
impl UnwindSafe for Knob
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