pub enum CompactOutcome {
Compacted,
Unchanged,
}Expand description
Outcome of compact_in_place.
Variants§
Compacted
At least one metadata retag or in-place layout compaction occurred.
Unchanged
The buffer was already minimal for the requested AlphaCompaction policy.
Implementations§
Source§impl CompactOutcome
impl CompactOutcome
Sourcepub const fn is_compacted(self) -> bool
pub const fn is_compacted(self) -> bool
Returns true if self == CompactOutcome::Compacted.
Trait Implementations§
Source§impl Clone for CompactOutcome
impl Clone for CompactOutcome
Source§fn clone(&self) -> CompactOutcome
fn clone(&self) -> CompactOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompactOutcome
Source§impl Debug for CompactOutcome
impl Debug for CompactOutcome
impl Eq for CompactOutcome
Source§impl Hash for CompactOutcome
impl Hash for CompactOutcome
Source§impl PartialEq for CompactOutcome
impl PartialEq for CompactOutcome
impl StructuralPartialEq for CompactOutcome
Auto Trait Implementations§
impl Freeze for CompactOutcome
impl RefUnwindSafe for CompactOutcome
impl Send for CompactOutcome
impl Sync for CompactOutcome
impl Unpin for CompactOutcome
impl UnsafeUnpin for CompactOutcome
impl UnwindSafe for CompactOutcome
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