#[non_exhaustive]pub enum CollectionType {
Default,
YoungOnly,
}
Expand description
Controls the style of collection carried out.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
Do a simple pass over the young gen, collecting non-cyclical pointers and moving old pointers to the old gen. Then perform a cycle-tracing collection over the old gen.
YoungOnly
Only run collection for the young gen. This may still move pointers to the old gen if they
qualify based on CollectOptions::old_gen_threshold
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 Default for CollectionType
impl Default 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.