Trait Contains

Source
pub unsafe trait Contains<E> { }
Expand description

Implemented if a set contains the element E.

§Safety

Implementing this is unsafe, for custom set-types, implement AsSet instead.

Implementors§

Source§

impl<T, E> Contains<E> for Set<T>
where T: Contains<E> + ?Sized,

Source§

impl<T, E> Contains<E> for T
where T: AsSet, T::Set: Contains<E>,