Trait IsEmptyProperty

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

The “empty” property of a collection-like type.

This property is used by the implementation of the AsssertEmptiness assertions.

Required Methods§

Source

fn is_empty_property(&self) -> bool

Returns whether the collection-like value is empty.

Implementations on Foreign Types§

Source§

impl IsEmptyProperty for &str

Source§

impl IsEmptyProperty for &CStr

Source§

impl IsEmptyProperty for &OsStr

Source§

impl IsEmptyProperty for CString

Source§

impl IsEmptyProperty for String

Source§

impl IsEmptyProperty for OsString

Source§

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

Source§

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

Source§

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

Source§

impl<T> IsEmptyProperty for &[T]

Source§

impl<T> IsEmptyProperty for &T
where T: IsEmptyProperty + ?Sized,

Source§

impl<T> IsEmptyProperty for &mut T
where T: IsEmptyProperty + ?Sized,

Source§

impl<T> IsEmptyProperty for BinaryHeap<T>

Source§

impl<T> IsEmptyProperty for BTreeSet<T>

Source§

impl<T> IsEmptyProperty for LinkedList<T>

Source§

impl<T> IsEmptyProperty for VecDeque<T>

Source§

impl<T> IsEmptyProperty for Vec<T>

Source§

impl<T> IsEmptyProperty for Range<T>
where T: PartialEq,

Source§

impl<T> IsEmptyProperty for RangeInclusive<T>
where T: PartialOrd,

Source§

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

Source§

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

Source§

impl<T, const N: usize> IsEmptyProperty for [T; N]

Implementors§