Struct turbo::b1
[−]
pub struct b1(_);
The base binary type, a unit-width binary digit.
Methods
impl b1
Trait Implementations
impl Clone for b1
fn clone(&self) -> b1
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for b1
impl Debug for b1
impl PartialEq for b1
fn eq(&self, __arg_0: &b1) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &b1) -> bool
This method tests for !=
.
impl Eq for b1
impl From<bool> for b1
impl Display for b1
impl BitAnd for b1
type Output = Self
The resulting type after applying the &
operator
fn bitand(self, other: b1) -> Self
The method for the &
operator
impl BitOr for b1
type Output = Self
The resulting type after applying the |
operator
fn bitor(self, other: b1) -> Self
The method for the |
operator
impl BitXor for b1
type Output = Self
The resulting type after applying the ^
operator
fn bitxor(self, other: b1) -> Self
The method for the ^
operator
impl<'a> PartialEq<b1> for &'a b1
fn eq(&self, other: &b1) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<'a> PartialEq<&'a b1> for b1
fn eq(&self, other: &&'a b1) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Peano for b1
fn successor(&self) -> Result<b1, OverflowError>
Produces the next integer value in the field of self (i.e., increment). Read more
fn predecessor(&self) -> Result<b1, OverflowError>
Peano arithmetic function.
fn cmp(&self, other: &Self) -> Ordering
Total ordering function.
impl PartialOrd for b1
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Add for b1
Arithmetic addition with overflow error.
type Output = Result<b1, OverflowError>
The resulting type after applying the +
operator
fn add(self, other: b1) -> Result<b1, OverflowError>
The method for the +
operator
impl<'a> Add<b1> for &'a b1
type Output = Result<b1, OverflowError>
The resulting type after applying the +
operator
fn add(self, other: b1) -> Result<b1, OverflowError>
The method for the +
operator
impl<'a> Add<&'a b1> for &'a b1
type Output = Result<b1, OverflowError>
The resulting type after applying the +
operator
fn add(self, other: &b1) -> Result<b1, OverflowError>
The method for the +
operator
impl Sub for b1
Arithmetic subtraction with overflow as error.
type Output = Result<b1, OverflowError>
The resulting type after applying the -
operator
fn sub(self, other: b1) -> Result<b1, OverflowError>
The method for the -
operator
impl<'a> Sub<b1> for &'a b1
type Output = Result<b1, OverflowError>
The resulting type after applying the -
operator
fn sub(self, other: b1) -> Result<b1, OverflowError>
The method for the -
operator
impl<'a> Sub<&'a b1> for &'a b1
type Output = Result<b1, OverflowError>
The resulting type after applying the -
operator
fn sub(self, other: &b1) -> Result<b1, OverflowError>
The method for the -
operator
impl Mul for b1
type Output = Result<Self, OverflowError>
The resulting type after applying the *
operator
fn mul(self, other: b1) -> Result<b1, OverflowError>
The method for the *
operator
impl<'a> Mul<b1> for &'a b1
type Output = Result<b1, OverflowError>
The resulting type after applying the *
operator
fn mul(self, other: b1) -> Result<b1, OverflowError>
The method for the *
operator
impl<'a> Mul<&'a b1> for &'a b1
type Output = Result<b1, OverflowError>
The resulting type after applying the *
operator
fn mul(self, other: &b1) -> Result<b1, OverflowError>
The method for the *
operator
impl Div for b1
type Output = Result<Self, DivisionError>
The resulting type after applying the /
operator
fn div(self, other: b1) -> Result<b1, DivisionError>
The method for the /
operator
impl<'a> Div<b1> for &'a b1
type Output = Result<b1, DivisionError>
The resulting type after applying the /
operator
fn div(self, other: b1) -> Result<b1, DivisionError>
The method for the /
operator