pub struct Integer<E: Environment, I: IntegerType> { /* private fields */ }
Implementations§
Source§impl<E: Environment, I: IntegerType> Integer<E, I>
impl<E: Environment, I: IntegerType> Integer<E, I>
Sourcepub fn from_field_lossy(field: &Field<E>) -> Self
pub fn from_field_lossy(field: &Field<E>) -> Self
Casts an integer from a base field, with lossy truncation.
This method is commonly-used by hash-to-integer algorithms, where the hash output does not need to preserve the full base field.
Source§impl<E: Environment, I: IntegerType> Integer<E, I>
impl<E: Environment, I: IntegerType> Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Integer<E, I>
impl<E: Environment, I: IntegerType> Integer<E, I>
pub fn size_in_bits() -> u16
pub fn cast_as_dual(self) -> Integer<E, I::Dual>
Trait Implementations§
Source§impl<E: Environment, I: IntegerType> AbsChecked for &Integer<E, I>
impl<E: Environment, I: IntegerType> AbsChecked for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> AbsChecked for Integer<E, I>
impl<E: Environment, I: IntegerType> AbsChecked for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> AbsWrapped for &Integer<E, I>
impl<E: Environment, I: IntegerType> AbsWrapped for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> AbsWrapped for Integer<E, I>
impl<E: Environment, I: IntegerType> AbsWrapped for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Add<&Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> Add<&Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Add<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Add<&Integer<E, I>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Add<Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> Add<Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Add for Integer<E, I>
impl<E: Environment, I: IntegerType> Add for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> AddAssign<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> AddAssign<&Integer<E, I>> for Integer<E, I>
Source§fn add_assign(&mut self, other: &Integer<E, I>)
fn add_assign(&mut self, other: &Integer<E, I>)
+=
operation. Read moreSource§impl<E: Environment, I: IntegerType> AddAssign for Integer<E, I>
impl<E: Environment, I: IntegerType> AddAssign for Integer<E, I>
Source§fn add_assign(&mut self, other: Integer<E, I>)
fn add_assign(&mut self, other: Integer<E, I>)
+=
operation. Read moreSource§impl<E: Environment, I: IntegerType> AddChecked for Integer<E, I>
impl<E: Environment, I: IntegerType> AddChecked for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> AddWrapped for Integer<E, I>
impl<E: Environment, I: IntegerType> AddWrapped for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitAnd<&Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> BitAnd<&Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitAnd<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> BitAnd<&Integer<E, I>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitAnd<Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> BitAnd<Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitAnd for Integer<E, I>
impl<E: Environment, I: IntegerType> BitAnd for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitAndAssign<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> BitAndAssign<&Integer<E, I>> for Integer<E, I>
Source§fn bitand_assign(&mut self, other: &Integer<E, I>)
fn bitand_assign(&mut self, other: &Integer<E, I>)
Sets self
as (self AND other)
.
Source§impl<E: Environment, I: IntegerType> BitAndAssign for Integer<E, I>
impl<E: Environment, I: IntegerType> BitAndAssign for Integer<E, I>
Source§fn bitand_assign(&mut self, other: Integer<E, I>)
fn bitand_assign(&mut self, other: Integer<E, I>)
Sets self
as (self AND other)
.
Source§impl<E: Environment, I: IntegerType> BitOr<&Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> BitOr<&Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitOr<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> BitOr<&Integer<E, I>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitOr<Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> BitOr<Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitOr for Integer<E, I>
impl<E: Environment, I: IntegerType> BitOr for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitOrAssign<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> BitOrAssign<&Integer<E, I>> for Integer<E, I>
Source§fn bitor_assign(&mut self, other: &Integer<E, I>)
fn bitor_assign(&mut self, other: &Integer<E, I>)
Sets self
as (self OR other)
.
Source§impl<E: Environment, I: IntegerType> BitOrAssign for Integer<E, I>
impl<E: Environment, I: IntegerType> BitOrAssign for Integer<E, I>
Source§fn bitor_assign(&mut self, other: Integer<E, I>)
fn bitor_assign(&mut self, other: Integer<E, I>)
Sets self
as (self OR other)
.
Source§impl<E: Environment, I: IntegerType> BitXor<&Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> BitXor<&Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitXor<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> BitXor<&Integer<E, I>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitXor<Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> BitXor<Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitXor for Integer<E, I>
impl<E: Environment, I: IntegerType> BitXor for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> BitXorAssign<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> BitXorAssign<&Integer<E, I>> for Integer<E, I>
Source§fn bitxor_assign(&mut self, other: &Integer<E, I>)
fn bitxor_assign(&mut self, other: &Integer<E, I>)
Sets self
as (self != other)
.
Source§impl<E: Environment, I: IntegerType> BitXorAssign for Integer<E, I>
impl<E: Environment, I: IntegerType> BitXorAssign for Integer<E, I>
Source§fn bitxor_assign(&mut self, other: Integer<E, I>)
fn bitxor_assign(&mut self, other: Integer<E, I>)
Sets self
as (self != other)
.
Source§impl<E: Clone + Environment, I: Clone + IntegerType> Clone for Integer<E, I>
impl<E: Clone + Environment, I: Clone + IntegerType> Clone for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Compare for Integer<E, I>
impl<E: Environment, I: IntegerType> Compare for Integer<E, I>
Source§fn is_less_than(&self, other: &Self) -> Self::Output
fn is_less_than(&self, other: &Self) -> Self::Output
Returns true
if self
is less than other
.
Source§fn is_greater_than(&self, other: &Self) -> Self::Output
fn is_greater_than(&self, other: &Self) -> Self::Output
Returns true
if self
is greater than other
.
Source§fn is_less_than_or_equal(&self, other: &Self) -> Self::Output
fn is_less_than_or_equal(&self, other: &Self) -> Self::Output
Returns true
if self
is less than or equal to other
.
Source§fn is_greater_than_or_equal(&self, other: &Self) -> Self::Output
fn is_greater_than_or_equal(&self, other: &Self) -> Self::Output
Returns true
if self
is greater than or equal to other
.
type Output = Boolean<E>
Source§impl<E: Environment, I: IntegerType> Debug for Integer<E, I>
impl<E: Environment, I: IntegerType> Debug for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Display for Integer<E, I>
impl<E: Environment, I: IntegerType> Display for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Div<&Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> Div<&Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Div<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Div<&Integer<E, I>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Div<Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> Div<Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Div for Integer<E, I>
impl<E: Environment, I: IntegerType> Div for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> DivAssign<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> DivAssign<&Integer<E, I>> for Integer<E, I>
Source§fn div_assign(&mut self, other: &Integer<E, I>)
fn div_assign(&mut self, other: &Integer<E, I>)
/=
operation. Read moreSource§impl<E: Environment, I: IntegerType> DivAssign for Integer<E, I>
impl<E: Environment, I: IntegerType> DivAssign for Integer<E, I>
Source§fn div_assign(&mut self, other: Integer<E, I>)
fn div_assign(&mut self, other: Integer<E, I>)
/=
operation. Read moreSource§impl<E: Environment, I: IntegerType> DivChecked for Integer<E, I>
impl<E: Environment, I: IntegerType> DivChecked for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> DivWrapped for Integer<E, I>
impl<E: Environment, I: IntegerType> DivWrapped for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Eject for Integer<E, I>
impl<E: Environment, I: IntegerType> Eject for Integer<E, I>
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the integer.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the integer circuit as a console integer value.
type Primitive = Integer<<E as Environment>::Network, I>
Source§fn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
Source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
true
if the circuit is a constant.Source§fn is_private(&self) -> bool
fn is_private(&self) -> bool
true
if the circuit is a private.Source§impl<E: Environment, I: IntegerType> Equal for Integer<E, I>
impl<E: Environment, I: IntegerType> Equal for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> From<&Integer<E, I>> for LinearCombination<E::BaseField>
impl<E: Environment, I: IntegerType> From<&Integer<E, I>> for LinearCombination<E::BaseField>
Source§impl<E: Environment, I: IntegerType> From<Integer<E, I>> for LinearCombination<E::BaseField>
impl<E: Environment, I: IntegerType> From<Integer<E, I>> for LinearCombination<E::BaseField>
Source§impl<E: Environment, I: IntegerType> FromBits for Integer<E, I>
impl<E: Environment, I: IntegerType> FromBits for Integer<E, I>
Source§fn from_bits_le(bits_le: &[Self::Boolean]) -> Self
fn from_bits_le(bits_le: &[Self::Boolean]) -> Self
Initializes a new integer from a list of little-endian bits with trailing zeros.
Source§fn from_bits_be(bits_be: &[Self::Boolean]) -> Self
fn from_bits_be(bits_be: &[Self::Boolean]) -> Self
Initializes a new integer from a list of big-endian bits with leading zeros.
type Boolean = Boolean<E>
Source§impl<E: Environment, I: IntegerType> FromField for Integer<E, I>
impl<E: Environment, I: IntegerType> FromField for Integer<E, I>
Source§fn from_field(field: Self::Field) -> Self
fn from_field(field: Self::Field) -> Self
Casts an integer from a base field.
This method guarantees the following:
- If the field element is larger than the integer domain, then the operation will fail.
- If the field element is smaller than the integer domain, then the operation will succeed.
type Field = Field<E>
Source§impl<E: Environment, I: IntegerType> FromStr for Integer<E, I>
impl<E: Environment, I: IntegerType> FromStr for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Inject for Integer<E, I>
impl<E: Environment, I: IntegerType> Inject for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> MSB for Integer<E, I>
impl<E: Environment, I: IntegerType> MSB for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn AbsChecked<Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn AbsChecked<Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn AbsWrapped<Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn AbsWrapped<Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Add<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Add<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn AddChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn AddChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn AddWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn AddWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn BitAnd<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn BitAnd<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn BitOr<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn BitOr<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn BitXor<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn BitXor<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Compare<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Compare<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Div<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Div<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn DivChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn DivChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn DivWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn DivWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Equal<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Equal<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Mul<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Mul<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn MulChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn MulChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn MulWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn MulWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Neg<Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Neg<Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Not<Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Not<Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn One<Boolean = Boolean<E>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn One<Boolean = Boolean<E>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn PowChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn PowChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn PowWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn PowWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Rem<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Rem<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn RemChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn RemChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Shl<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Shl<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn ShlChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn ShlChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn ShlWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn ShlWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Shr<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Shr<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn ShrChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn ShrChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn ShrWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Metrics<dyn ShrWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Sub<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Sub<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn SubChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn SubChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn SubWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn SubWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Ternary<Boolean = Boolean<E>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Ternary<Boolean = Boolean<E>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Metrics<dyn Zero<Boolean = Boolean<E>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Zero<Boolean = Boolean<E>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Modulo for Integer<E, I>
impl<E: Environment, I: IntegerType> Modulo for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Mul<&Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> Mul<&Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Mul<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Mul<&Integer<E, I>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Mul<Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> Mul<Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Mul for Integer<E, I>
impl<E: Environment, I: IntegerType> Mul for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> MulAssign<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> MulAssign<&Integer<E, I>> for Integer<E, I>
Source§fn mul_assign(&mut self, other: &Integer<E, I>)
fn mul_assign(&mut self, other: &Integer<E, I>)
*=
operation. Read moreSource§impl<E: Environment, I: IntegerType> MulAssign for Integer<E, I>
impl<E: Environment, I: IntegerType> MulAssign for Integer<E, I>
Source§fn mul_assign(&mut self, other: Integer<E, I>)
fn mul_assign(&mut self, other: Integer<E, I>)
*=
operation. Read moreSource§impl<E: Environment, I: IntegerType> MulChecked for Integer<E, I>
impl<E: Environment, I: IntegerType> MulChecked for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> MulWrapped for Integer<E, I>
impl<E: Environment, I: IntegerType> MulWrapped for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Neg for &Integer<E, I>
impl<E: Environment, I: IntegerType> Neg for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Neg for Integer<E, I>
impl<E: Environment, I: IntegerType> Neg for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Not for &Integer<E, I>
impl<E: Environment, I: IntegerType> Not for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Not for Integer<E, I>
impl<E: Environment, I: IntegerType> Not for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> One for Integer<E, I>
impl<E: Environment, I: IntegerType> One for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn AbsChecked<Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn AbsChecked<Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn AbsWrapped<Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn AbsWrapped<Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Add<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Add<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn AddChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn AddChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn AddWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn AddWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn BitAnd<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn BitAnd<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
type Case = (CircuitType<Integer<E, I>>, CircuitType<Integer<E, I>>)
Source§fn output_mode(case: &Self::Case) -> Mode
fn output_mode(case: &Self::Case) -> Mode
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn BitOr<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn BitOr<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
type Case = (CircuitType<Integer<E, I>>, CircuitType<Integer<E, I>>)
Source§fn output_mode(case: &Self::Case) -> Mode
fn output_mode(case: &Self::Case) -> Mode
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn BitXor<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn BitXor<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
type Case = (CircuitType<Integer<E, I>>, CircuitType<Integer<E, I>>)
Source§fn output_mode(case: &Self::Case) -> Mode
fn output_mode(case: &Self::Case) -> Mode
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Compare<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Compare<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Div<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Div<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn DivChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn DivChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn DivWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn DivWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Equal<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Equal<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Mul<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Mul<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn MulChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn MulChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn MulWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn MulWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Neg<Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Neg<Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Not<Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Not<Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn One<Boolean = Boolean<E>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn One<Boolean = Boolean<E>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn PowChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn PowChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn PowWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn PowWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Rem<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Rem<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn RemChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn RemChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Shl<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Shl<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn ShlChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn ShlChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn ShlWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn ShlWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Shr<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Shr<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn ShrChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn ShrChecked<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn ShrWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> OutputMode<dyn ShrWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Sub<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Sub<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn SubChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn SubChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn SubWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn SubWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Ternary<Boolean = Boolean<E>, Output = Integer<E, I>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Ternary<Boolean = Boolean<E>, Output = Integer<E, I>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> OutputMode<dyn Zero<Boolean = Boolean<E>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Zero<Boolean = Boolean<E>>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Parser for Integer<E, I>
impl<E: Environment, I: IntegerType> Parser for Integer<E, I>
Source§fn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses a string into an integer circuit.
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Pow<&Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Pow<&Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Pow<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Pow<Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> PowChecked<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> PowChecked<Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> PowWrapped<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> PowWrapped<Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Rem<&Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> Rem<&Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Rem<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Rem<&Integer<E, I>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Rem<Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> Rem<Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Rem for Integer<E, I>
impl<E: Environment, I: IntegerType> Rem for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> RemAssign<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> RemAssign<&Integer<E, I>> for Integer<E, I>
Source§fn rem_assign(&mut self, other: &Integer<E, I>)
fn rem_assign(&mut self, other: &Integer<E, I>)
%=
operation. Read moreSource§impl<E: Environment, I: IntegerType> RemAssign for Integer<E, I>
impl<E: Environment, I: IntegerType> RemAssign for Integer<E, I>
Source§fn rem_assign(&mut self, other: Integer<E, I>)
fn rem_assign(&mut self, other: Integer<E, I>)
%=
operation. Read moreSource§impl<E: Environment, I: IntegerType> RemChecked for Integer<E, I>
impl<E: Environment, I: IntegerType> RemChecked for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> RemWrapped for Integer<E, I>
impl<E: Environment, I: IntegerType> RemWrapped for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Shl<&Integer<E, M>> for &Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Shl<&Integer<E, M>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Shl<&Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Shl<&Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Shl<Integer<E, M>> for &Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Shl<Integer<E, M>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Shl<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Shl<Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> ShlAssign<&Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> ShlAssign<&Integer<E, M>> for Integer<E, I>
Source§fn shl_assign(&mut self, rhs: &Integer<E, M>)
fn shl_assign(&mut self, rhs: &Integer<E, M>)
<<=
operation. Read moreSource§impl<E: Environment, I: IntegerType, M: Magnitude> ShlAssign<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> ShlAssign<Integer<E, M>> for Integer<E, I>
Source§fn shl_assign(&mut self, rhs: Integer<E, M>)
fn shl_assign(&mut self, rhs: Integer<E, M>)
<<=
operation. Read moreSource§impl<E: Environment, I: IntegerType, M: Magnitude> ShlChecked<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> ShlChecked<Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> ShlWrapped<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> ShlWrapped<Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Shr<&Integer<E, M>> for &Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Shr<&Integer<E, M>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Shr<&Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Shr<&Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Shr<Integer<E, M>> for &Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Shr<Integer<E, M>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> Shr<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> Shr<Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> ShrAssign<&Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> ShrAssign<&Integer<E, M>> for Integer<E, I>
Source§fn shr_assign(&mut self, rhs: &Integer<E, M>)
fn shr_assign(&mut self, rhs: &Integer<E, M>)
>>=
operation. Read moreSource§impl<E: Environment, I: IntegerType, M: Magnitude> ShrAssign<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> ShrAssign<Integer<E, M>> for Integer<E, I>
Source§fn shr_assign(&mut self, rhs: Integer<E, M>)
fn shr_assign(&mut self, rhs: Integer<E, M>)
>>=
operation. Read moreSource§impl<E: Environment, I: IntegerType, M: Magnitude> ShrChecked<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> ShrChecked<Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType, M: Magnitude> ShrWrapped<Integer<E, M>> for Integer<E, I>
impl<E: Environment, I: IntegerType, M: Magnitude> ShrWrapped<Integer<E, M>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Sub<&Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> Sub<&Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Sub<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Sub<&Integer<E, I>> for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Sub<Integer<E, I>> for &Integer<E, I>
impl<E: Environment, I: IntegerType> Sub<Integer<E, I>> for &Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Sub for Integer<E, I>
impl<E: Environment, I: IntegerType> Sub for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> SubAssign<&Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> SubAssign<&Integer<E, I>> for Integer<E, I>
Source§fn sub_assign(&mut self, other: &Integer<E, I>)
fn sub_assign(&mut self, other: &Integer<E, I>)
-=
operation. Read moreSource§impl<E: Environment, I: IntegerType> SubAssign for Integer<E, I>
impl<E: Environment, I: IntegerType> SubAssign for Integer<E, I>
Source§fn sub_assign(&mut self, other: Integer<E, I>)
fn sub_assign(&mut self, other: Integer<E, I>)
-=
operation. Read moreSource§impl<E: Environment, I: IntegerType> SubChecked for Integer<E, I>
impl<E: Environment, I: IntegerType> SubChecked for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> SubWrapped for Integer<E, I>
impl<E: Environment, I: IntegerType> SubWrapped for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Ternary for Integer<E, I>
impl<E: Environment, I: IntegerType> Ternary for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> ToBits for &Integer<E, I>
impl<E: Environment, I: IntegerType> ToBits for &Integer<E, I>
Source§fn write_bits_le(&self, vec: &mut Vec<Self::Boolean>)
fn write_bits_le(&self, vec: &mut Vec<Self::Boolean>)
Outputs the little-endian bit representation of self
with trailing zeros.
Source§fn write_bits_be(&self, vec: &mut Vec<Self::Boolean>)
fn write_bits_be(&self, vec: &mut Vec<Self::Boolean>)
Outputs the big-endian bit representation of self
with leading zeros.
type Boolean = Boolean<E>
Source§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Source§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Source§impl<E: Environment, I: IntegerType> ToBits for Integer<E, I>
impl<E: Environment, I: IntegerType> ToBits for Integer<E, I>
Source§fn write_bits_le(&self, vec: &mut Vec<Self::Boolean>)
fn write_bits_le(&self, vec: &mut Vec<Self::Boolean>)
Outputs the little-endian bit representation of self
with trailing zeros.
Source§fn write_bits_be(&self, vec: &mut Vec<Self::Boolean>)
fn write_bits_be(&self, vec: &mut Vec<Self::Boolean>)
Outputs the big-endian bit representation of self
with leading zeros.
type Boolean = Boolean<E>
Source§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Source§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Source§impl<E: Environment, I: IntegerType> ToField for Integer<E, I>
impl<E: Environment, I: IntegerType> ToField for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> ToFields for Integer<E, I>
impl<E: Environment, I: IntegerType> ToFields for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> TypeName for Integer<E, I>
impl<E: Environment, I: IntegerType> TypeName for Integer<E, I>
Source§impl<E: Environment, I: IntegerType> Zero for Integer<E, I>
impl<E: Environment, I: IntegerType> Zero for Integer<E, I>
impl<E: Environment, I: IntegerType> IntegerCore<I> for Integer<E, I>
impl<E: Environment, I: IntegerType> IntegerTrait<I, Integer<E, u8>, Integer<E, u16>, Integer<E, u32>> for Integer<E, I>
Auto Trait Implementations§
impl<E, I> Freeze for Integer<E, I>
impl<E, I> RefUnwindSafe for Integer<E, I>
impl<E, I> !Send for Integer<E, I>
impl<E, I> !Sync for Integer<E, I>
impl<E, I> Unpin for Integer<E, I>
impl<E, I> UnwindSafe for Integer<E, I>
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
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>
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>
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