pub trait ValueContainer {
type Value;
// Required method
fn contains_value(self, value: Self::Value) -> bool;
}Required Associated Types§
Required Methods§
Sourcefn contains_value(self, value: Self::Value) -> bool
fn contains_value(self, value: Self::Value) -> bool
Checks if collection contains a value.
use traiter::collections::ValueContainer;
assert!(ValueContainer::contains_value(&[0], &0));
assert!(!ValueContainer::contains_value(&[0], &1));Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".