pub trait IsReducedCollection: FromIterator<Self::Item> + IntoIterator {
type Item: IsReducedType + Ord + Clone;
// Required methods
fn collection(&self) -> &BTreeSet<<Self as IsReducedCollection>::Item>;
fn collection_mut(
&mut self,
) -> &mut BTreeSet<<Self as IsReducedCollection>::Item>;
}Expand description
Implementing types are collections of “reduced” types
Required Associated Types§
type Item: IsReducedType + Ord + Clone
Required Methods§
fn collection(&self) -> &BTreeSet<<Self as IsReducedCollection>::Item>
fn collection_mut( &mut self, ) -> &mut BTreeSet<<Self as IsReducedCollection>::Item>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.