pub enum GcPolicy {
Automatic,
Manual,
}Expand description
When the collector runs.
Variants§
Automatic
When the heap has grown by the growth factor since the last collection (and at the cap).
Manual
Only at the cap and on Runtime::run_gc.
Trait Implementations§
impl Copy for GcPolicy
impl Eq for GcPolicy
impl StructuralPartialEq for GcPolicy
Auto Trait Implementations§
impl Freeze for GcPolicy
impl RefUnwindSafe for GcPolicy
impl Send for GcPolicy
impl Sync for GcPolicy
impl Unpin for GcPolicy
impl UnsafeUnpin for GcPolicy
impl UnwindSafe for GcPolicy
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