pub struct AlignedGpadlView { /* private fields */ }
Expand description
A GPADL view that has exactly one page-aligned range.
Implementations§
Source§impl AlignedGpadlView
impl AlignedGpadlView
Sourcepub fn new(gpadl: GpadlView) -> Result<Self, GpadlView>
pub fn new(gpadl: GpadlView) -> Result<Self, GpadlView>
Validates that gpadl
is aligned and wraps it.
Sourcepub fn split(
self,
offset: u32,
) -> Result<(AlignedGpadlView, AlignedGpadlView), AlignedGpadlView>
pub fn split( self, offset: u32, ) -> Result<(AlignedGpadlView, AlignedGpadlView), AlignedGpadlView>
Splits the range into two aligned ranges at the page number offset
.
Trait Implementations§
Source§impl Clone for AlignedGpadlView
impl Clone for AlignedGpadlView
Source§fn clone(&self) -> AlignedGpadlView
fn clone(&self) -> AlignedGpadlView
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 moreAuto Trait Implementations§
impl Freeze for AlignedGpadlView
impl !RefUnwindSafe for AlignedGpadlView
impl Send for AlignedGpadlView
impl Sync for AlignedGpadlView
impl Unpin for AlignedGpadlView
impl !UnwindSafe for AlignedGpadlView
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