Trait ink_env::Clear[][src]

pub trait Clear {
    fn is_clear(&self) -> bool;
fn clear() -> Self; }

The equivalent of Zero for hashes.

A hash that consists only of 0 bits is clear.

Required methods

fn is_clear(&self) -> bool[src]

Returns true if the hash is clear.

fn clear() -> Self[src]

Returns a clear hash.

Loading content...

Implementations on Foreign Types

impl Clear for [u8; 32][src]

Loading content...

Implementors

impl Clear for Hash[src]

Loading content...