Skip to main content

Empty

Trait Empty 

Source
pub trait Empty {
    // Required method
    fn empty() -> Self;
}
Expand description

A trait for items that can be empty

Required Methods§

Source

fn empty() -> Self

Getting an empty item

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§