IsEmpty

Trait IsEmpty 

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

Things that can be “empty”.

Required Methods§

Source

fn is_empty(&self) -> bool

Implementations on Foreign Types§

Source§

impl IsEmpty for str

Source§

fn is_empty(&self) -> bool

Source§

impl IsEmpty for CString

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Source§

impl IsEmpty for String

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Source§

impl IsEmpty for CStr

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Source§

impl IsEmpty for OsStr

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Source§

impl IsEmpty for OsString

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Source§

impl<'a, T: IsEmpty + ?Sized> IsEmpty for &'a T

Source§

fn is_empty(&self) -> bool

Source§

impl<'a, T: IsEmpty + ?Sized> IsEmpty for &'a mut T

Source§

fn is_empty(&self) -> bool

Source§

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

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Source§

impl<K, V, S> IsEmpty for HashMap<K, V, S>
where K: Eq + Hash, S: BuildHasher,

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Source§

impl<T> IsEmpty for [T]

Source§

fn is_empty(&self) -> bool

Source§

impl<T> IsEmpty for Vec<T>

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Source§

impl<T: IsEmpty> IsEmpty for Option<T>

Source§

fn is_empty(&self) -> bool

Source§

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

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Source§

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

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Source§

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

Available on crate feature use_std only.
Source§

fn is_empty(&self) -> bool

Implementors§