pub struct BoolMapper<L: LookupMap> { /* private fields */ }Expand description
A Mapper for bool output values.
Toggle is implemented as logical negation (!v), since arithmetic on bool is not allowed in Rust.
Implementations§
Trait Implementations§
Source§impl<L: Clone + LookupMap> Clone for BoolMapper<L>
impl<L: Clone + LookupMap> Clone for BoolMapper<L>
Source§fn clone(&self) -> BoolMapper<L>
fn clone(&self) -> BoolMapper<L>
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 moreSource§impl<L: LookupMap<Out = bool>> Mapper for BoolMapper<L>
impl<L: LookupMap<Out = bool>> Mapper for BoolMapper<L>
Source§fn low(&self) -> <Self::Map as LookupMap>::Out
fn low(&self) -> <Self::Map as LookupMap>::Out
The low (minimum) value; delegates to
LookupMap::min.Source§fn high(&self) -> <Self::Map as LookupMap>::Out
fn high(&self) -> <Self::Map as LookupMap>::Out
The high (maximum) value; delegates to
LookupMap::max.Auto Trait Implementations§
impl<L> Freeze for BoolMapper<L>where
L: Freeze,
impl<L> RefUnwindSafe for BoolMapper<L>where
L: RefUnwindSafe,
impl<L> Send for BoolMapper<L>where
L: Send,
impl<L> Sync for BoolMapper<L>where
L: Sync,
impl<L> Unpin for BoolMapper<L>where
L: Unpin,
impl<L> UnsafeUnpin for BoolMapper<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for BoolMapper<L>where
L: UnwindSafe,
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