usesuper::*;/// Inherent implementation of [`UseBoolean`].
implUseBoolean{/// Sets the value to `true`.
pubfnset_true(&self){self.get_value().set(true);}/// Sets the value to `false`.
pubfnset_false(&self){self.get_value().set(false);}/// Flips the value: `true` becomes `false`, `false` becomes `true`.
pubfntoggle(&self){let current:bool=self.get_value().get();self.get_value().set(!current);}/// Replaces the value with `next`.
////// # Arguments
////// - `bool` - The new value.
pubfnset_value(&self, next:bool){self.get_value().set(next);}/// Returns the current value as a snapshot.
////// # Returns
////// - `bool` - The current value.
pubfnget(&self)->bool{self.get_value().get()}}