pub trait ConfigurableArithmetic {
// Required methods
fn mul_with_config(&self, rhs: &Self, config: &MultiplicationConfig) -> Self;
fn pow_with_config(
&self,
exp: &BigInt,
config: &ExponentiationConfig,
) -> Self;
}Expand description
Trait for configurable arithmetic operations.
This trait allows operations to be performed with different algorithms and configurations, enabling future optimizations and extensions.
Required Methods§
Sourcefn mul_with_config(&self, rhs: &Self, config: &MultiplicationConfig) -> Self
fn mul_with_config(&self, rhs: &Self, config: &MultiplicationConfig) -> Self
Multiply with configuration.
Sourcefn pow_with_config(&self, exp: &BigInt, config: &ExponentiationConfig) -> Self
fn pow_with_config(&self, exp: &BigInt, config: &ExponentiationConfig) -> Self
Compute power with configuration.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.