pub struct PhysFrame {
pub start_address: PhysAddr,
}Expand description
Physical frame (4KB aligned physical memory)
Fields§
§start_address: PhysAddrImplementations§
Source§impl PhysFrame
Performs the phys frame containing address operation.
impl PhysFrame
Performs the phys frame containing address operation.
Sourcepub fn containing_address(addr: PhysAddr) -> Self
pub fn containing_address(addr: PhysAddr) -> Self
Create a PhysFrame containing the given physical address
Sourcepub fn from_start_address(addr: PhysAddr) -> Result<Self, ()>
pub fn from_start_address(addr: PhysAddr) -> Result<Self, ()>
Create a PhysFrame from a 4KB-aligned address
Sourcepub fn range_inclusive(start: PhysFrame, end: PhysFrame) -> FrameRangeInclusive ⓘ
pub fn range_inclusive(start: PhysFrame, end: PhysFrame) -> FrameRangeInclusive ⓘ
Create an inclusive range of frames
Trait Implementations§
Source§impl Ord for PhysFrame
impl Ord for PhysFrame
Source§impl PartialOrd for PhysFrame
impl PartialOrd for PhysFrame
impl Copy for PhysFrame
impl Eq for PhysFrame
impl StructuralPartialEq for PhysFrame
Auto Trait Implementations§
impl Freeze for PhysFrame
impl RefUnwindSafe for PhysFrame
impl Send for PhysFrame
impl Sync for PhysFrame
impl Unpin for PhysFrame
impl UnsafeUnpin for PhysFrame
impl UnwindSafe for PhysFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more