snarkvm_fields::traits

Trait Zero

Source
pub trait Zero: Sized {
    // Required methods
    fn zero() -> Self;
    fn is_zero(&self) -> bool;
}

Required Methods§

Source

fn zero() -> Self

Source

fn is_zero(&self) -> bool

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.

Implementors§