pub trait Multiset {
// Required method
fn is_multiset(&mut self) -> bool;
}Required Methods§
Sourcefn is_multiset(&mut self) -> bool
fn is_multiset(&mut self) -> bool
Returns true if self is a multiset (i.e. it contains duplicate
values).
§Examples
use kwik::math::set::Multiset;
let a = [1, 2, 3, 2];
let b = [1, 2, 3, 4];
assert!(a.iter().is_multiset());
assert!(!b.iter().is_multiset());Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".