Skip to main content

ZeroFlag

Trait ZeroFlag 

Source
pub trait ZeroFlag<C: SWCurveConfig>:
    Hash
    + Ord
    + Eq
    + Copy
    + Sync
    + Send
    + Sized
    + 'static {
    const IS_ZERO: Self;
    const IS_NOT_ZERO: Self;

    // Required method
    fn is_zero(point: &Affine<C>) -> bool;

    // Provided method
    fn zeroize(&mut self) { ... }
}

Required Associated Constants§

Source

const IS_ZERO: Self

Source

const IS_NOT_ZERO: Self

Required Methods§

Source

fn is_zero(point: &Affine<C>) -> bool

Provided Methods§

Source

fn zeroize(&mut self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<C: SWCurveConfig<ZeroFlag = bool>> ZeroFlag<C> for bool

Source§

const IS_ZERO: Self = true

Source§

const IS_NOT_ZERO: Self = false

Source§

fn is_zero(point: &Affine<C>) -> bool

Source§

impl<C: SWCurveConfig> ZeroFlag<C> for ()

Source§

const IS_ZERO: Self = ()

Source§

const IS_NOT_ZERO: Self = ()

Source§

fn is_zero(point: &Affine<C>) -> bool

Implementors§