Skip to main content

Empty

Trait Empty 

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

Required Methods§

Source

fn is_empty(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Empty for ()

Source§

fn is_empty(&self) -> bool

Source§

impl<K, V> Empty for BTreeMap<K, V>

Source§

fn is_empty(&self) -> bool

Source§

impl<K, V> Empty for HashMap<K, V>

Source§

fn is_empty(&self) -> bool

Source§

impl<K: Eq + Hash, V> Empty for DashMap<K, V>

Source§

fn is_empty(&self) -> bool

Source§

impl<K: Eq + Hash> Empty for DashSet<K>

Source§

fn is_empty(&self) -> bool

Source§

impl<T: Empty> Empty for Arc<T>

Source§

fn is_empty(&self) -> bool

Source§

impl<T: Empty> Empty for Box<T>

Source§

fn is_empty(&self) -> bool

Source§

impl<T: Empty> Empty for Rc<T>

Source§

fn is_empty(&self) -> bool

Source§

impl<V> Empty for BTreeSet<V>

Source§

fn is_empty(&self) -> bool

Source§

impl<V> Empty for BinaryHeap<V>

Source§

fn is_empty(&self) -> bool

Source§

impl<V> Empty for HashSet<V>

Source§

fn is_empty(&self) -> bool

Source§

impl<V> Empty for LinkedList<V>

Source§

fn is_empty(&self) -> bool

Source§

impl<V> Empty for Option<V>

Source§

fn is_empty(&self) -> bool

Source§

impl<V> Empty for Vec<V>

Source§

fn is_empty(&self) -> bool

Source§

impl<V> Empty for VecDeque<V>

Source§

fn is_empty(&self) -> bool

Implementors§

Source§

impl<K: Eq + Hash, V> Empty for KeyMutex<K, V>

Source§

impl<K: Eq + Hash, V> Empty for KeyRwLock<K, V>