Skip to main content

IsReducedCollection

Trait IsReducedCollection 

Source
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§

Required Methods§

Source

fn collection(&self) -> &BTreeSet<<Self as IsReducedCollection>::Item>

Source

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.

Implementors§