pub trait Clear {
    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

True iff no bits are set.

Return the value of Self that is clear.

Implementors