pub struct ConstantBool<T: NumOps + Copy>(pub T);Tuple Fields§
§0: TImplementations§
Source§impl<T> ConstantBool<T>
impl<T> ConstantBool<T>
Trait Implementations§
Source§impl<T: NumOps + Copy + BitOr<Output = T>> BitOrAssign for ConstantBool<T>
impl<T: NumOps + Copy + BitOr<Output = T>> BitOrAssign for ConstantBool<T>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl<T: Clone + NumOps + Copy> Clone for ConstantBool<T>
impl<T: Clone + NumOps + Copy> Clone for ConstantBool<T>
Source§fn clone(&self) -> ConstantBool<T>
fn clone(&self) -> ConstantBool<T>
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<T: NumOps + Copy + Zero> Default for ConstantBool<T>
impl<T: NumOps + Copy + Zero> Default for ConstantBool<T>
Source§fn default() -> ConstantBool<T>
fn default() -> ConstantBool<T>
Returns the “default value” for a type. Read more
Source§impl<T: NumOps + Copy + BitXor<Output = T> + One> Not for ConstantBool<T>
impl<T: NumOps + Copy + BitXor<Output = T> + One> Not for ConstantBool<T>
Source§fn not(self) -> ConstantBool<T>
fn not(self) -> ConstantBool<T>
Performs the unary ! operation.
Source§type Output = ConstantBool<T>
type Output = ConstantBool<T>
The resulting type after applying the
! operator.impl<T: Copy + NumOps + Copy> Copy for ConstantBool<T>
Auto Trait Implementations§
impl<T> Freeze for ConstantBool<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConstantBool<T>where
T: RefUnwindSafe,
impl<T> Send for ConstantBool<T>where
T: Send,
impl<T> Sync for ConstantBool<T>where
T: Sync,
impl<T> Unpin for ConstantBool<T>where
T: Unpin,
impl<T> UnwindSafe for ConstantBool<T>where
T: 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