IsEmpty

Trait IsEmpty 

Source
pub trait IsEmpty {
    // Required method
    fn is_empty(&self) -> bool;
}
Expand description

A trait for checking if a struct is empty. See the crate-level documentation for more information.

Required Methods§

Source

fn is_empty(&self) -> bool

Check if the struct is empty. Returns true if all the fields are considered empty.

Implementations on Foreign Types§

Source§

impl<T> IsEmpty for Option<T>

Source§

fn is_empty(&self) -> bool

Implementors§