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§
Sourcefn is_empty_property(&self) -> bool
fn is_empty_property(&self) -> bool
Returns whether the collection-like value is empty.
Implementations on Foreign Types§
Source§impl IsEmptyProperty for &str
impl IsEmptyProperty for &str
fn is_empty_property(&self) -> bool
Source§impl IsEmptyProperty for &CStr
impl IsEmptyProperty for &CStr
fn is_empty_property(&self) -> bool
Source§impl IsEmptyProperty for &OsStr
Available on crate feature std only.
impl IsEmptyProperty for &OsStr
Available on crate feature
std only.fn is_empty_property(&self) -> bool
Source§impl IsEmptyProperty for CString
impl IsEmptyProperty for CString
fn is_empty_property(&self) -> bool
Source§impl IsEmptyProperty for String
impl IsEmptyProperty for String
fn is_empty_property(&self) -> bool
Source§impl IsEmptyProperty for OsString
Available on crate feature std only.
impl IsEmptyProperty for OsString
Available on crate feature
std only.fn is_empty_property(&self) -> bool
Source§impl<K, V> IsEmptyProperty for BTreeMap<K, V>
impl<K, V> IsEmptyProperty for BTreeMap<K, V>
fn is_empty_property(&self) -> bool
Source§impl<K, V, S> IsEmptyProperty for HashMap<K, V, S>
Available on crate feature std only.
impl<K, V, S> IsEmptyProperty for HashMap<K, V, S>
Available on crate feature
std only.fn is_empty_property(&self) -> bool
Source§impl<K, V, S> IsEmptyProperty for HashMap<K, V, S>
impl<K, V, S> IsEmptyProperty for HashMap<K, V, S>
fn is_empty_property(&self) -> bool
Source§impl<T> IsEmptyProperty for &[T]
impl<T> IsEmptyProperty for &[T]
fn is_empty_property(&self) -> bool
Source§impl<T> IsEmptyProperty for &Twhere
T: IsEmptyProperty + ?Sized,
impl<T> IsEmptyProperty for &Twhere
T: IsEmptyProperty + ?Sized,
fn is_empty_property(&self) -> bool
Source§impl<T> IsEmptyProperty for &mut Twhere
T: IsEmptyProperty + ?Sized,
impl<T> IsEmptyProperty for &mut Twhere
T: IsEmptyProperty + ?Sized,
fn is_empty_property(&self) -> bool
Source§impl<T> IsEmptyProperty for BinaryHeap<T>
impl<T> IsEmptyProperty for BinaryHeap<T>
fn is_empty_property(&self) -> bool
Source§impl<T> IsEmptyProperty for BTreeSet<T>
impl<T> IsEmptyProperty for BTreeSet<T>
fn is_empty_property(&self) -> bool
Source§impl<T> IsEmptyProperty for LinkedList<T>
impl<T> IsEmptyProperty for LinkedList<T>
fn is_empty_property(&self) -> bool
Source§impl<T> IsEmptyProperty for VecDeque<T>
impl<T> IsEmptyProperty for VecDeque<T>
fn is_empty_property(&self) -> bool
Source§impl<T> IsEmptyProperty for Vec<T>
impl<T> IsEmptyProperty for Vec<T>
fn is_empty_property(&self) -> bool
Source§impl<T> IsEmptyProperty for Range<T>where
T: PartialEq,
impl<T> IsEmptyProperty for Range<T>where
T: PartialEq,
fn is_empty_property(&self) -> bool
Source§impl<T> IsEmptyProperty for RangeInclusive<T>where
T: PartialOrd,
impl<T> IsEmptyProperty for RangeInclusive<T>where
T: PartialOrd,
fn is_empty_property(&self) -> bool
Source§impl<T, S> IsEmptyProperty for HashSet<T, S>
Available on crate feature std only.
impl<T, S> IsEmptyProperty for HashSet<T, S>
Available on crate feature
std only.