Struct x86_64::structures::paging::frame::PhysFrame [−][src]
Expand description
A physical memory frame.
Implementations
impl<S: PageSize> PhysFrame<S>
[src]
impl<S: PageSize> PhysFrame<S>
[src]pub fn from_start_address(address: PhysAddr) -> Result<Self, AddressNotAligned>
[src]
pub fn from_start_address(address: PhysAddr) -> Result<Self, AddressNotAligned>
[src]Returns the frame that starts at the given virtual address.
Returns an error if the address is not correctly aligned (i.e. is not a valid frame start).
pub const unsafe fn from_start_address_unchecked(
start_address: PhysAddr
) -> Self
[src]
pub const unsafe fn from_start_address_unchecked(
start_address: PhysAddr
) -> Self
[src]Returns the frame that starts at the given virtual address.
Safety
The address must be correctly aligned.
pub fn containing_address(address: PhysAddr) -> Self
[src]
pub fn containing_address(address: PhysAddr) -> Self
[src]Returns the frame that contains the given physical address.
pub const fn start_address(self) -> PhysAddr
[src]
pub const fn start_address(self) -> PhysAddr
[src]Returns the start address of the frame.
pub const fn range(start: PhysFrame<S>, end: PhysFrame<S>) -> PhysFrameRange<S>ⓘNotable traits for PhysFrameRange<S>
impl<S: PageSize> Iterator for PhysFrameRange<S> type Item = PhysFrame<S>;
[src]
pub const fn range(start: PhysFrame<S>, end: PhysFrame<S>) -> PhysFrameRange<S>ⓘNotable traits for PhysFrameRange<S>
impl<S: PageSize> Iterator for PhysFrameRange<S> type Item = PhysFrame<S>;
[src]Returns a range of frames, exclusive end
.
pub const fn range_inclusive(
start: PhysFrame<S>,
end: PhysFrame<S>
) -> PhysFrameRangeInclusive<S>ⓘNotable traits for PhysFrameRangeInclusive<S>
impl<S: PageSize> Iterator for PhysFrameRangeInclusive<S> type Item = PhysFrame<S>;
[src]
pub const fn range_inclusive(
start: PhysFrame<S>,
end: PhysFrame<S>
) -> PhysFrameRangeInclusive<S>ⓘNotable traits for PhysFrameRangeInclusive<S>
impl<S: PageSize> Iterator for PhysFrameRangeInclusive<S> type Item = PhysFrame<S>;
[src]Returns a range of frames, inclusive end
.
Trait Implementations
impl<S: PageSize> AddAssign<u64> for PhysFrame<S>
[src]
impl<S: PageSize> AddAssign<u64> for PhysFrame<S>
[src]fn add_assign(&mut self, rhs: u64)
[src]
fn add_assign(&mut self, rhs: u64)
[src]Performs the +=
operation. Read more
impl<S: Ord + PageSize> Ord for PhysFrame<S>
[src]
impl<S: Ord + PageSize> Ord for PhysFrame<S>
[src]impl<S: PartialOrd + PageSize> PartialOrd<PhysFrame<S>> for PhysFrame<S>
[src]
impl<S: PartialOrd + PageSize> PartialOrd<PhysFrame<S>> for PhysFrame<S>
[src]fn partial_cmp(&self, other: &PhysFrame<S>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &PhysFrame<S>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<S: PageSize> SubAssign<u64> for PhysFrame<S>
[src]
impl<S: PageSize> SubAssign<u64> for PhysFrame<S>
[src]fn sub_assign(&mut self, rhs: u64)
[src]
fn sub_assign(&mut self, rhs: u64)
[src]Performs the -=
operation. Read more
impl<S: Copy + PageSize> Copy for PhysFrame<S>
[src]
impl<S: Eq + PageSize> Eq for PhysFrame<S>
[src]
impl<S: PageSize> StructuralEq for PhysFrame<S>
[src]
impl<S: PageSize> StructuralPartialEq for PhysFrame<S>
[src]
Auto Trait Implementations
impl<S> Send for PhysFrame<S> where
S: Send,
S: Send,
impl<S> Sync for PhysFrame<S> where
S: Sync,
S: Sync,
impl<S> Unpin for PhysFrame<S> where
S: Unpin,
S: Unpin,