pub enum RcStrategy {
Standard,
Deferred,
None,
}Expand description
Reference counting strategy.
Variants§
Standard
Standard reference counting with inc/dec.
Deferred
Deferred reference counting (batch dec at safe points).
None
No reference counting (leak everything; useful for benchmarks).
Trait Implementations§
Source§impl Clone for RcStrategy
impl Clone for RcStrategy
Source§fn clone(&self) -> RcStrategy
fn clone(&self) -> RcStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RcStrategy
impl Debug for RcStrategy
Source§impl PartialEq for RcStrategy
impl PartialEq for RcStrategy
impl Copy for RcStrategy
impl Eq for RcStrategy
impl StructuralPartialEq for RcStrategy
Auto Trait Implementations§
impl Freeze for RcStrategy
impl RefUnwindSafe for RcStrategy
impl Send for RcStrategy
impl Sync for RcStrategy
impl Unpin for RcStrategy
impl UnsafeUnpin for RcStrategy
impl UnwindSafe for RcStrategy
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