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>
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> 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>)
Performs the
+=
operation. Read moresource§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>)
Performs the
+=
operation. Read moresource§impl<E: Environment, I: IntegerType> AddChecked<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> AddChecked<Integer<E, I>> for Integer<E, I>
source§impl<E: Environment, I: IntegerType> AddWrapped<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> AddWrapped<Integer<E, I>> 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<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> 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<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> 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<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> Compare<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Compare<Integer<E, I>> 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> 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>)
Performs the
/=
operation. Read moresource§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>)
Performs the
/=
operation. Read moresource§impl<E: Environment, I: IntegerType> DivChecked<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> DivChecked<Integer<E, I>> for Integer<E, I>
source§impl<E: Environment, I: IntegerType> DivWrapped<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> DivWrapped<Integer<E, I>> 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)
Ejects the mode and primitive value of the circuit type.
source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.source§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private.source§impl<E: Environment, I: IntegerType> Equal<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Equal<Integer<E, I>> 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<Output = Integer<E, I>, Boolean = Boolean<E>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Metrics<dyn Ternary<Output = Integer<E, I>, Boolean = Boolean<E>>> 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<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> Modulo<Integer<E, I>> 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>)
Performs the
*=
operation. Read moresource§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>)
Performs the
*=
operation. Read moresource§impl<E: Environment, I: IntegerType> MulChecked<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> MulChecked<Integer<E, I>> for Integer<E, I>
source§impl<E: Environment, I: IntegerType> MulWrapped<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> MulWrapped<Integer<E, I>> 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
Returns the mode of the output.
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
Returns the mode of the output.
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
Returns the mode of the output.
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
Returns the mode of the output.
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
Returns the mode of the output.
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<Output = Integer<E, I>, Boolean = Boolean<E>>> for Integer<E, I>
impl<E: Environment, I: IntegerType> OutputMode<dyn Ternary<Output = Integer<E, I>, Boolean = Boolean<E>>> 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> 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>)
Performs the
%=
operation. Read moresource§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>)
Performs the
%=
operation. Read moresource§impl<E: Environment, I: IntegerType> RemChecked<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> RemChecked<Integer<E, I>> for Integer<E, I>
source§impl<E: Environment, I: IntegerType> RemWrapped<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> RemWrapped<Integer<E, I>> 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>)
Performs the
<<=
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>)
Performs the
<<=
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>)
Performs the
>>=
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>)
Performs the
>>=
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> 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>)
Performs the
-=
operation. Read moresource§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>)
Performs the
-=
operation. Read moresource§impl<E: Environment, I: IntegerType> SubChecked<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> SubChecked<Integer<E, I>> for Integer<E, I>
source§impl<E: Environment, I: IntegerType> SubWrapped<Integer<E, I>> for Integer<E, I>
impl<E: Environment, I: IntegerType> SubWrapped<Integer<E, I>> 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§impl<E: Environment, I: IntegerType> ToBits for Integer<E, I>
impl<E: Environment, I: IntegerType> ToBits for Integer<E, I>
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> RefUnwindSafe for Integer<E, I>where I: RefUnwindSafe, <E as Environment>::BaseField: RefUnwindSafe,
impl<E, I> !Send for Integer<E, I>
impl<E, I> !Sync for Integer<E, I>
impl<E, I> Unpin for Integer<E, I>where I: Unpin, <E as Environment>::BaseField: Unpin,
impl<E, I> UnwindSafe for Integer<E, I>where I: UnwindSafe, <E as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
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
Mutably borrows from an owned value. Read more