pub trait IsNotEmptyExtension {
// Required method
fn is_not_empty(&self) -> bool;
}Expand description
Trait that declares is_not_empty() method.
Required Methods§
Sourcefn is_not_empty(&self) -> bool
fn is_not_empty(&self) -> bool
Returns true if the collection contains at least one element (the inverse of is_empty()).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".