Skip to main content

HasEmpty

Trait HasEmpty 

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

Represents types that have emptiness-checking capabilities.

Required Methods§

Source

fn empty(&self) -> bool

Checks whether the value is empty.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl HasEmpty for CStr

Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for CString

Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for OsStr

Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for OsString

Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for Path

Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for PathBuf

Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for String

Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for str

Source§

fn empty(&self) -> bool

Source§

impl<K, V, S> HasEmpty for HashMap<K, V, S>

Source§

fn empty(&self) -> bool

Source§

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

Source§

fn empty(&self) -> bool

Source§

impl<T, S> HasEmpty for HashSet<T, S>

Source§

fn empty(&self) -> bool

Source§

impl<T: HasEmpty + ?Sized> HasEmpty for &T

Source§

fn empty(&self) -> bool

Source§

impl<T: HasEmpty + ?Sized> HasEmpty for Arc<T>

Source§

fn empty(&self) -> bool

Source§

impl<T: HasEmpty + ?Sized> HasEmpty for Box<T>

Source§

fn empty(&self) -> bool

Source§

impl<T: HasEmpty + ?Sized> HasEmpty for Rc<T>

Source§

fn empty(&self) -> bool

Source§

impl<T: ToOwned + HasEmpty + ?Sized> HasEmpty for Cow<'_, T>

Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for BTreeSet<T>

Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for BinaryHeap<T>

Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for LinkedList<T>

Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for Vec<T>

Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for VecDeque<T>

Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for [T]

Source§

fn empty(&self) -> bool

Implementors§