pub struct BinNum { /* private fields */ }
Expand description
A wrapper around an integer limited to value 0 and 1.
Implementations§
Trait Implementations§
Source§impl AddAssign for BinNum
impl AddAssign for BinNum
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl MulAssign for BinNum
impl MulAssign for BinNum
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*=
operation. Read moreSource§impl Ord for BinNum
impl Ord for BinNum
Source§impl PartialOrd for BinNum
impl PartialOrd for BinNum
impl Copy for BinNum
impl Eq for BinNum
impl StructuralPartialEq for BinNum
Auto Trait Implementations§
impl Freeze for BinNum
impl RefUnwindSafe for BinNum
impl Send for BinNum
impl Sync for BinNum
impl Unpin for BinNum
impl UnwindSafe for BinNum
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more