Struct dup_indexer::DupIndexer
source · pub struct DupIndexer<T> { /* private fields */ }Implementations§
source§impl<T> DupIndexer<T>
impl<T> DupIndexer<T>
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new instance of DupIndexer<T>, without requiring T to implement Default.
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Constructs a new, empty DupIndexer<T> with at least the specified capacity.
sourcepub fn capacity(&self) -> usize
pub fn capacity(&self) -> usize
Returns the total number of elements the indexer can hold without reallocating.
pub fn into_vec(self) -> Vec<T>
Trait Implementations§
source§impl<T: Debug> Debug for DupIndexer<T>
impl<T: Debug> Debug for DupIndexer<T>
source§impl<T: Default> Default for DupIndexer<T>
impl<T: Default> Default for DupIndexer<T>
If T implements Default, create a new instance of DupIndexer<T>.
Note that DupIndexer::new does not require T to implement Default.