pub struct AllocHashSet(/* private fields */);
Implementations§
Source§impl AllocHashSet
impl AllocHashSet
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn capacity(&self) -> usize
Sourcepub fn allocate_capacity(&mut self, target_cap: usize)
pub fn allocate_capacity(&mut self, target_cap: usize)
Reserve capacity such that the new capacity is at least target_cap
. If target_cap
is
less than the current capacity, this function may not actually reallocate.
Trait Implementations§
impl Send for AllocHashSet
impl Sync for AllocHashSet
Auto Trait Implementations§
impl Freeze for AllocHashSet
impl RefUnwindSafe for AllocHashSet
impl Unpin for AllocHashSet
impl UnwindSafe for AllocHashSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more