pub struct CacheRange<'a> {
pub allocation: &'a Allocation,
pub offset: u64,
pub size: u64,
}Expand description
One allocation-relative cache range. Each allocation must own a mapping hold.
Fields§
§allocation: &'a Allocation§offset: u64§size: u64Implementations§
Source§impl<'a> CacheRange<'a>
impl<'a> CacheRange<'a>
Sourcepub fn new(allocation: &'a Allocation) -> Self
pub fn new(allocation: &'a Allocation) -> Self
Describe the whole allocation from byte zero without acquiring a mapping hold.
Sourcepub fn set_allocation(self, value: &'a Allocation) -> Self
pub fn set_allocation(self, value: &'a Allocation) -> Self
Set allocation and return the updated record.
Sourcepub fn set_offset(self, value: u64) -> Self
pub fn set_offset(self, value: u64) -> Self
Set offset and return the updated record.
Trait Implementations§
Source§impl<'a> Clone for CacheRange<'a>
impl<'a> Clone for CacheRange<'a>
impl<'a> Copy for CacheRange<'a>
Auto Trait Implementations§
impl<'a> Forget for CacheRange<'a>
impl<'a> Freeze for CacheRange<'a>
impl<'a> Move for CacheRange<'a>
impl<'a> RefUnwindSafe for CacheRange<'a>
impl<'a> Send for CacheRange<'a>
impl<'a> Sync for CacheRange<'a>
impl<'a> Unpin for CacheRange<'a>
impl<'a> UnsafeUnpin for CacheRange<'a>
impl<'a> UnwindSafe for CacheRange<'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