Trait ruma_serde::can_be_empty::CanBeEmpty[][src]

pub trait CanBeEmpty {
    fn is_empty(&self) -> bool;
}
Expand description

Trait for types that have an “empty” state.

If Default is implemented for Self, Self::default().is_empty() should always be true.

Required methods

Check whether self is empty.

Implementors