[][src]Trait sp_runtime::traits::Clear

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

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

Required methods

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

True iff no bits are set.

pub fn clear() -> Self[src]

Return the value of Self that is clear.

Loading content...

Implementors

impl<T: Default + Eq + PartialEq> Clear for T[src]

Loading content...