pub struct Reaction { /* private fields */ }
Implementations§
source§impl Reaction
impl Reaction
pub fn new(func: Box<dyn Fn(&Evaluation)>) -> Self
pub fn new_with_name(name: &'static str, func: Box<dyn Fn(&Evaluation)>) -> Self
pub fn update_unchecked(&self)
pub fn update(&self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Reaction
impl !Send for Reaction
impl !Sync for Reaction
impl Unpin for Reaction
impl !UnwindSafe for Reaction
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