Empty

Trait Empty 

Source
pub trait Empty {
    // Required methods
    fn empty() -> Self;
    fn is_empty(&self) -> bool;
}

Required Methods§

Source

fn empty() -> Self

Construct an empty object.

Source

fn is_empty(&self) -> bool

Check if this object is empty.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§