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.

Implementations on Foreign Types§

Source§

impl HasEmpty for str

Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for String

Available on crate features alloc or std only.
Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for OsStr

Available on crate feature std only.
Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for OsString

Available on crate feature std only.
Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for Path

Available on crate feature std only.
Source§

fn empty(&self) -> bool

Source§

impl HasEmpty for PathBuf

Available on crate feature std only.
Source§

fn empty(&self) -> bool

Source§

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

Available on crate features alloc or std only.
Source§

fn empty(&self) -> bool

Source§

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

Available on crate feature std only.
Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for [T]

Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for BinaryHeap<T>

Available on crate features alloc or std only.
Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for BTreeSet<T>

Available on crate features alloc or std only.
Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for LinkedList<T>

Available on crate features alloc or std only.
Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for VecDeque<T>

Available on crate features alloc or std only.
Source§

fn empty(&self) -> bool

Source§

impl<T> HasEmpty for Vec<T>

Available on crate features alloc or std only.
Source§

fn empty(&self) -> bool

Source§

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

Available on crate feature std only.
Source§

fn empty(&self) -> bool

Source§

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

Available on crate features alloc or std only.
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 Box<T>

Available on crate features alloc or std only.
Source§

fn empty(&self) -> bool

Source§

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

Available on crate features alloc or std only.
Source§

fn empty(&self) -> bool

Source§

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

Available on crate features alloc or std only.
Source§

fn empty(&self) -> bool

Implementors§