pub struct DefragmentationMove {
pub source: AllocationInfo,
pub destination: AllocationInfo,
pub resource: DefragmentationResource,
pub can_alias: bool,
}Expand description
Borrow-free binding snapshots. They do not retain resources or mappings. Mapped pointers describe counted holds owned by the pass’s live regions. Source pointers expire on commit/destroy, destination pointers on ignore/destroy; copied snapshots extend no lifetime.
Fields§
§source: AllocationInfo§destination: AllocationInfo§resource: DefragmentationResource§can_alias: boolThe whole alias group must be recreated, copied and retired together.
resource identifies only the recorded primary resource, if any.
Implementations§
Source§impl DefragmentationMove
impl DefragmentationMove
Sourcepub fn set_source(self, value: AllocationInfo) -> Self
pub fn set_source(self, value: AllocationInfo) -> Self
Set source and return the updated record.
Sourcepub fn set_destination(self, value: AllocationInfo) -> Self
pub fn set_destination(self, value: AllocationInfo) -> Self
Set destination and return the updated record.
Sourcepub fn set_resource(self, value: DefragmentationResource) -> Self
pub fn set_resource(self, value: DefragmentationResource) -> Self
Set resource and return the updated record.
Sourcepub fn set_can_alias(self, value: bool) -> Self
pub fn set_can_alias(self, value: bool) -> Self
Set can_alias and return the updated record.
Trait Implementations§
Source§impl Clone for DefragmentationMove
impl Clone for DefragmentationMove
impl Copy for DefragmentationMove
Source§impl Debug for DefragmentationMove
impl Debug for DefragmentationMove
impl Eq for DefragmentationMove
Source§impl PartialEq for DefragmentationMove
impl PartialEq for DefragmentationMove
impl StructuralPartialEq for DefragmentationMove
Auto Trait Implementations§
impl !Send for DefragmentationMove
impl !Sync for DefragmentationMove
impl Forget for DefragmentationMove
impl Freeze for DefragmentationMove
impl Move for DefragmentationMove
impl RefUnwindSafe for DefragmentationMove
impl Unpin for DefragmentationMove
impl UnsafeUnpin for DefragmentationMove
impl UnwindSafe for DefragmentationMove
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