pub enum CollectionType {
Full,
Partial,
AllocAtLeast(Layout),
Suggest,
Custom(u64),
}
Variants§
Full
Request that a full GC is performed across the entire heap as soon as possible
Partial
Request that a partial GC is performed. The definition of a partial GC will vary slightly between different implementations.
AllocAtLeast(Layout)
Request a GC to be performed so the current allocator has enough space to allocate the given layout. What this means will change depending on the implementation.
Suggest
Suggest to the GC that garbage collection should be performed soon. This is designed to give a user the option to hint that space will be required in the near future. The implementation may choose to ignore this request if it deems a GC is not required or would be detrimental to performance.
Custom(u64)
A custom collection request defined by a specific implementation.
Trait Implementations§
Source§impl Clone for CollectionType
impl Clone for CollectionType
Source§fn clone(&self) -> CollectionType
fn clone(&self) -> CollectionType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CollectionType
impl Debug for CollectionType
Source§impl Hash for CollectionType
impl Hash for CollectionType
Source§impl PartialEq for CollectionType
impl PartialEq for CollectionType
impl Copy for CollectionType
impl Eq for CollectionType
impl StructuralPartialEq for CollectionType
Auto Trait Implementations§
impl Freeze for CollectionType
impl RefUnwindSafe for CollectionType
impl Send for CollectionType
impl Sync for CollectionType
impl Unpin for CollectionType
impl UnwindSafe for CollectionType
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