Struct dup_indexer::DupIndexer
source · pub struct DupIndexer<T> { /* private fields */ }Implementations§
source§impl DupIndexer<String>
impl DupIndexer<String>
pub fn insert_string(&mut self, value: String) -> usize
source§impl<T: Eq + Hash> DupIndexer<Vec<T>>
impl<T: Eq + Hash> DupIndexer<Vec<T>>
pub fn insert_vec(&mut self, value: Vec<T>) -> usize
source§impl<T: Eq + Hash> DupIndexer<Box<T>>
impl<T: Eq + Hash> DupIndexer<Box<T>>
sourcepub unsafe fn insert_box(&mut self, value: Box<T>) -> usize
pub unsafe fn insert_box(&mut self, value: Box<T>) -> usize
Safety
Make sure you only pass in a Box that was allocated using the default allocator.
Once https://github.com/rust-lang/rust/issues/32838 is released,
this can be changed to use Box::from_raw_in instead, and it would become safer.