ByKey

Trait ByKey 

Source
pub trait ByKey<Q>: Exception
where Q: ?Sized,
{ // Required method fn except<'a>( &'a mut self, key: &'a Q, ) -> Result<Except<'a, Self::Kind, Self::Target, Q>, KeyNotFoundError<&'a Q>>; }

Required Methods§

Source

fn except<'a>( &'a mut self, key: &'a Q, ) -> Result<Except<'a, Self::Kind, Self::Target, Q>, KeyNotFoundError<&'a Q>>

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.

Implementations on Foreign Types§

Source§

impl<T, S> ByKey<T> for HashSet<T, S>
where T: Eq + Hash, S: BuildHasher,

Available on crate feature std only.
Source§

fn except<'a>( &'a mut self, key: &'a T, ) -> Result<Except<'a, Self, T>, KeyNotFoundError<&'a T>>

Implementors§

Source§

impl<T, S> ByKey<T> for HashSet1<T, S>
where T: UnsafeHash, S: BuildHasher,

Available on crate feature std only.