Trait ink_primitives::Clear

source ·
pub trait Clear {
    const CLEAR_HASH: Self;

    // Required method
    fn is_clear(&self) -> bool;
}
Expand description

The equivalent of Zero for hashes.

A hash that consists only of 0 bits is clear.

Required Associated Constants§

source

const CLEAR_HASH: Self

The clear hash.

Required Methods§

source

fn is_clear(&self) -> bool

Returns true if the hash is clear.

Implementations on Foreign Types§

source§

impl Clear for [u8; 32]

source§

const CLEAR_HASH: Self = _

source§

fn is_clear(&self) -> bool

Implementors§

source§

impl Clear for Hash

source§

const CLEAR_HASH: Self = _