pub trait Zerowhere
Self: Sized,{
// Required methods
fn zero() -> Self;
fn vartime_is_zero(&self) -> bool;
}
Expand description
For an algebraic structure, this defines the additive identity.
Required Methods§
Sourcefn vartime_is_zero(&self) -> bool
fn vartime_is_zero(&self) -> bool
Whether or not this item is zero.
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.