Enum relp_num::Binary

source ·
pub enum Binary {
    Zero,
    One,
}
Expand description

§Binary

A zero-one data type used primarily for the cost in the artificial tableau.

Note that addition works like addition in the group GF(2).

See also the documentation in relp::algorithm::two_phase::tableau::kind::artificial::Cost.

Variants§

§

Zero

§

One

Trait Implementations§

source§

impl Add<&Binary> for i128

§

type Output = i128

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Binary> for i16

§

type Output = i16

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Binary> for i32

§

type Output = i32

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Binary> for i64

§

type Output = i64

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Binary> for i8

§

type Output = i8

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Binary> for u128

§

type Output = u128

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Binary> for u16

§

type Output = u16

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Binary> for u32

§

type Output = u32

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Binary> for u64

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Binary> for u8

§

type Output = u8

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Binary> for i128

§

type Output = i128

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Binary> for i16

§

type Output = i16

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Binary> for i32

§

type Output = i32

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Binary> for i64

§

type Output = i64

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Binary> for i8

§

type Output = i8

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Binary> for u128

§

type Output = u128

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Binary> for u16

§

type Output = u16

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Binary> for u32

§

type Output = u32

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Binary> for u64

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Binary> for u8

§

type Output = u8

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl Add for Binary

§

type Output = Binary

The resulting type after applying the + operator.
source§

fn add(self, rhs: Binary) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<&Binary> for i128

source§

fn add_assign(&mut self, rhs: &Binary)

Performs the += operation. Read more
source§

impl AddAssign<&Binary> for i16

source§

fn add_assign(&mut self, rhs: &Binary)

Performs the += operation. Read more
source§

impl AddAssign<&Binary> for i32

source§

fn add_assign(&mut self, rhs: &Binary)

Performs the += operation. Read more
source§

impl AddAssign<&Binary> for i64

source§

fn add_assign(&mut self, rhs: &Binary)

Performs the += operation. Read more
source§

impl AddAssign<&Binary> for i8

source§

fn add_assign(&mut self, rhs: &Binary)

Performs the += operation. Read more
source§

impl AddAssign<&Binary> for u128

source§

fn add_assign(&mut self, rhs: &Binary)

Performs the += operation. Read more
source§

impl AddAssign<&Binary> for u16

source§

fn add_assign(&mut self, rhs: &Binary)

Performs the += operation. Read more
source§

impl AddAssign<&Binary> for u32

source§

fn add_assign(&mut self, rhs: &Binary)

Performs the += operation. Read more
source§

impl AddAssign<&Binary> for u64

source§

fn add_assign(&mut self, rhs: &Binary)

Performs the += operation. Read more
source§

impl AddAssign<&Binary> for u8

source§

fn add_assign(&mut self, rhs: &Binary)

Performs the += operation. Read more
source§

impl Clone for Binary

source§

fn clone(&self) -> Binary

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Binary

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Binary

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for Binary

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&Binary> for i128

source§

fn from(other: &Binary) -> Self

Converts to this type from the input type.
source§

impl From<&Binary> for i16

source§

fn from(other: &Binary) -> Self

Converts to this type from the input type.
source§

impl From<&Binary> for i32

source§

fn from(other: &Binary) -> Self

Converts to this type from the input type.
source§

impl From<&Binary> for i64

source§

fn from(other: &Binary) -> Self

Converts to this type from the input type.
source§

impl From<&Binary> for i8

source§

fn from(other: &Binary) -> Self

Converts to this type from the input type.
source§

impl From<&Binary> for u128

source§

fn from(other: &Binary) -> Self

Converts to this type from the input type.
source§

impl From<&Binary> for u16

source§

fn from(other: &Binary) -> Self

Converts to this type from the input type.
source§

impl From<&Binary> for u32

source§

fn from(other: &Binary) -> Self

Converts to this type from the input type.
source§

impl From<&Binary> for u64

source§

fn from(other: &Binary) -> Self

Converts to this type from the input type.
source§

impl From<&Binary> for u8

source§

fn from(other: &Binary) -> Self

Converts to this type from the input type.
source§

impl From<Binary> for i128

source§

fn from(other: Binary) -> Self

Converts to this type from the input type.
source§

impl From<Binary> for i16

source§

fn from(other: Binary) -> Self

Converts to this type from the input type.
source§

impl From<Binary> for i32

source§

fn from(other: Binary) -> Self

Converts to this type from the input type.
source§

impl From<Binary> for i64

source§

fn from(other: Binary) -> Self

Converts to this type from the input type.
source§

impl From<Binary> for i8

source§

fn from(other: Binary) -> Self

Converts to this type from the input type.
source§

impl From<Binary> for u128

source§

fn from(other: Binary) -> Self

Converts to this type from the input type.
source§

impl From<Binary> for u16

source§

fn from(other: Binary) -> Self

Converts to this type from the input type.
source§

impl From<Binary> for u32

source§

fn from(other: Binary) -> Self

Converts to this type from the input type.
source§

impl From<Binary> for u64

source§

fn from(other: Binary) -> Self

Converts to this type from the input type.
source§

impl From<Binary> for u8

source§

fn from(other: Binary) -> Self

Converts to this type from the input type.
source§

impl Mul<&Binary> for &i128

§

type Output = i128

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for &i16

§

type Output = i16

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for &i32

§

type Output = i32

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for &i64

§

type Output = i64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for &i8

§

type Output = i8

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for &u128

§

type Output = u128

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for &u16

§

type Output = u16

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for &u32

§

type Output = u32

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for &u64

§

type Output = u64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for &u8

§

type Output = u8

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for i128

§

type Output = i128

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for i16

§

type Output = i16

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for i32

§

type Output = i32

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for i64

§

type Output = i64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for i8

§

type Output = i8

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for u128

§

type Output = u128

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for u16

§

type Output = u16

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for u32

§

type Output = u32

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for u64

§

type Output = u64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Binary> for u8

§

type Output = u8

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Binary> for i128

§

type Output = i128

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Binary> for i16

§

type Output = i16

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Binary> for i32

§

type Output = i32

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Binary> for i64

§

type Output = i64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Binary> for i8

§

type Output = i8

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Binary> for u128

§

type Output = u128

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Binary> for u16

§

type Output = u16

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Binary> for u32

§

type Output = u32

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Binary> for u64

§

type Output = u64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Binary> for u8

§

type Output = u8

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl Mul for Binary

§

type Output = Binary

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Binary) -> Self::Output

Performs the * operation. Read more
source§

impl NonZero for Binary

source§

fn is_not_zero(&self) -> bool

Whether the value is not equal to zero. Read more
source§

impl One for Binary

source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
source§

impl PartialEq for Binary

source§

fn eq(&self, other: &Binary) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Zero for Binary

source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

impl Copy for Binary

source§

impl Eq for Binary

source§

impl StructuralPartialEq for Binary

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.