Struct memory_structs::Frame
source · pub struct Frame { /* private fields */ }
Expand description
A Frame
is a chunk of physical memory aligned to a [PAGE_SIZE
] boundary.
Implementations§
source§impl Frame
impl Frame
sourcepub const fn start_address(&self) -> PhysicalAddress
pub const fn start_address(&self) -> PhysicalAddress
Returns the PhysicalAddress
at the start of this Frame
.
sourcepub const fn containing_address(addr: PhysicalAddress) -> Frame
pub const fn containing_address(addr: PhysicalAddress) -> Frame
Returns the Frame
containing the given PhysicalAddress
.
Trait Implementations§
source§impl AddAssign<usize> for Frame
impl AddAssign<usize> for Frame
source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+=
operation. Read moresource§impl Ord for Frame
impl Ord for Frame
source§impl PartialEq<Frame> for Frame
impl PartialEq<Frame> for Frame
source§impl PartialOrd<Frame> for Frame
impl PartialOrd<Frame> for Frame
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Step for Frame
impl Step for Frame
Implementing Step
allows Frame
to be used in an Iterator
.
source§fn steps_between(start: &Frame, end: &Frame) -> Option<usize>
fn steps_between(start: &Frame, end: &Frame) -> Option<usize>
🔬This is a nightly-only experimental API. (
step_trait
)source§fn forward_checked(start: Frame, count: usize) -> Option<Frame>
fn forward_checked(start: Frame, count: usize) -> Option<Frame>
🔬This is a nightly-only experimental API. (
step_trait
)source§fn backward_checked(start: Frame, count: usize) -> Option<Frame>
fn backward_checked(start: Frame, count: usize) -> Option<Frame>
🔬This is a nightly-only experimental API. (
step_trait
)source§fn forward(start: Self, count: usize) -> Self
fn forward(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
)source§unsafe fn forward_unchecked(start: Self, count: usize) -> Self
unsafe fn forward_unchecked(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
)source§fn backward(start: Self, count: usize) -> Self
fn backward(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
)source§unsafe fn backward_unchecked(start: Self, count: usize) -> Self
unsafe fn backward_unchecked(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
)source§impl SubAssign<usize> for Frame
impl SubAssign<usize> for Frame
source§fn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
Performs the
-=
operation. Read more