Enum jit_allocator::allocator::ResetPolicy
source · #[repr(u32)]pub enum ResetPolicy {
Soft,
Hard,
}
Expand description
A policy that can be used with reset()
functions.
Variants§
Soft
Soft reset, does not deeallocate memory (default).
Hard
Hard reset, releases all memory used, if any.
Trait Implementations§
source§impl Clone for ResetPolicy
impl Clone for ResetPolicy
source§fn clone(&self) -> ResetPolicy
fn clone(&self) -> ResetPolicy
Returns a copy 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 ResetPolicy
impl Debug for ResetPolicy
source§impl Hash for ResetPolicy
impl Hash for ResetPolicy
source§impl Ord for ResetPolicy
impl Ord for ResetPolicy
source§fn cmp(&self, other: &ResetPolicy) -> Ordering
fn cmp(&self, other: &ResetPolicy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ResetPolicy> for ResetPolicy
impl PartialEq<ResetPolicy> for ResetPolicy
source§fn eq(&self, other: &ResetPolicy) -> bool
fn eq(&self, other: &ResetPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResetPolicy> for ResetPolicy
impl PartialOrd<ResetPolicy> for ResetPolicy
source§fn partial_cmp(&self, other: &ResetPolicy) -> Option<Ordering>
fn partial_cmp(&self, other: &ResetPolicy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ResetPolicy
impl Eq for ResetPolicy
impl StructuralEq for ResetPolicy
impl StructuralPartialEq for ResetPolicy
Auto Trait Implementations§
impl RefUnwindSafe for ResetPolicy
impl Send for ResetPolicy
impl Sync for ResetPolicy
impl Unpin for ResetPolicy
impl UnwindSafe for ResetPolicy
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