Struct snarkvm_circuit_types_integers::Integer
source · 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 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 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 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 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: 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 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§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 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>
type Case = (Mode, CircuitType<Integer<E, M>>)
source§fn output_mode(case: &Self::Case) -> Mode
fn output_mode(case: &Self::Case) -> Mode
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>
type Case = (Mode, CircuitType<Integer<E, M>>)
source§fn output_mode(case: &Self::Case) -> Mode
fn output_mode(case: &Self::Case) -> Mode
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§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 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> 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> 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 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.