SmartHashSet

Trait SmartHashSet 

Source
pub trait SmartHashSet
where Self::output: SmartHash, Self::option: Default,
{ type output; type option; // Required method fn get_matching<'a>( &'a self, options: <<Self as SmartHashSet>::output as SmartHash>::option, ) -> Option<Vec<&'a Self::output>>; // Provided method fn get_none_default(&self) -> Self::option { ... } }

Required Associated Types§

Required Methods§

Source

fn get_matching<'a>( &'a self, options: <<Self as SmartHashSet>::output as SmartHash>::option, ) -> Option<Vec<&'a Self::output>>

Provided Methods§

Source

fn get_none_default(&self) -> Self::option

Implementations on Foreign Types§

Source§

impl<SH> SmartHashSet for HashSet<SH>
where SH: SmartHash + Hash + Eq, <SH as SmartHash>::option: PartialEq + Default,

Source§

type output = SH

Source§

type option = <SH as SmartHash>::option

Source§

fn get_matching<'a>( &'a self, options: <SH as SmartHash>::option, ) -> Option<Vec<&'a SH>>

Implementors§