Trait sp_runtime::traits::Clear

source ·
pub trait Clear {
    // Required methods
    fn is_clear(&self) -> bool;
    fn clear() -> Self;
}
Expand description

Trait for things that can be clear (have no bits set). For numeric types, essentially the same as Zero.

Required Methods§

source

fn is_clear(&self) -> bool

True iff no bits are set.

source

fn clear() -> Self

Return the value of Self that is clear.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Default + Eq + PartialEq> Clear for T