Trait former::HashSetLike
source · pub trait HashSetLike<E>{
// Required method
fn insert(&mut self, e: E) -> Option<E>;
}Expand description
A trait for containers behaving like a HashSet, allowing insertion operations.
Implementing this trait enables the associated container to be used with HashSetSubformer,
facilitating a builder pattern that is both intuitive and concise.
§Example Implementation
Implementing HashSetLike for std::collections::HashSet: