Struct finite_fields::b1
[−]
[src]
pub struct b1(_);
The base binary type, a unit-width binary digit.
Methods
impl b1[src]
Trait Implementations
impl Clone for b1[src]
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[src]
impl PartialEq for b1[src]
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[src]
impl From<bool> for b1
impl Display for b1[src]
impl<'a> PartialEq<b1> for &'a b1[src]
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) -> bool1.0.0
This method tests for !=.
impl<'a> PartialEq<&'a b1> for b1[src]
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) -> bool1.0.0
This method tests for !=.
impl Peano for b1[src]
fn successor(&self) -> Result<b1, OverflowError>
Produces the next integer value in the field of self (i.e., increment).
fn predecessor(&self) -> Result<b1, OverflowError>
Peano arithmetic function.
fn cmp(&self, other: &Self) -> Ordering
Total ordering function.
impl PartialOrd for b1[src]
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) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.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) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.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[src]
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[src]
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[src]
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[src]
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[src]
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[src]
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[src]
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[src]
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[src]
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[src]
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[src]
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
impl<'a> Div<&'a b1> for &'a b1[src]
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