Struct vma::DefragmentationContext
source · pub struct DefragmentationContext<'a> { /* private fields */ }
Implementations§
source§impl<'a> DefragmentationContext<'a>
impl<'a> DefragmentationContext<'a>
sourcepub fn end(self) -> DefragmentationStats
pub fn end(self) -> DefragmentationStats
Ends defragmentation process.
sourcepub fn begin_pass(&self, mover: impl FnOnce(&mut [DefragmentationMove])) -> bool
pub fn begin_pass(&self, mover: impl FnOnce(&mut [DefragmentationMove])) -> bool
Returns false
if no more moves are possible or true
if more defragmentations are possible.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DefragmentationContext<'a>
impl<'a> !Send for DefragmentationContext<'a>
impl<'a> !Sync for DefragmentationContext<'a>
impl<'a> Unpin for DefragmentationContext<'a>
impl<'a> UnwindSafe for DefragmentationContext<'a>
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