Struct x86_64::structures::paging::PhysFrame [−][src]
A physical memory frame.
Methods
impl<S: PageSize> PhysFrame<S>
[src]
impl<S: PageSize> PhysFrame<S>
pub fn from_start_address(address: PhysAddr) -> Result<Self, ()>
[src]
pub fn from_start_address(address: PhysAddr) -> Result<Self, ()>
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 fn containing_address(address: PhysAddr) -> Self
[src]
pub fn containing_address(address: PhysAddr) -> Self
Returns the frame that contains the given physical address.
pub fn start_address(&self) -> PhysAddr
[src]
pub fn start_address(&self) -> PhysAddr
Returns the start address of the frame.
pub fn size(&self) -> u64
[src]
pub fn size(&self) -> u64
Returns the size the frame (4KB, 2MB or 1GB).
ⓘImportant traits for PhysFrameRange<S>pub fn range(start: PhysFrame<S>, end: PhysFrame<S>) -> PhysFrameRange<S>
[src]
pub fn range(start: PhysFrame<S>, end: PhysFrame<S>) -> PhysFrameRange<S>
Returns a range of frames, exclusive end
.
ⓘImportant traits for PhysFrameRangeInclusive<S>pub fn range_inclusive(
start: PhysFrame<S>,
end: PhysFrame<S>
) -> PhysFrameRangeInclusive<S>
[src]
pub fn range_inclusive(
start: PhysFrame<S>,
end: PhysFrame<S>
) -> PhysFrameRangeInclusive<S>
Returns a range of frames, inclusive end
.
Trait Implementations
impl<S: Clone + PageSize> Clone for PhysFrame<S>
[src]
impl<S: Clone + PageSize> Clone for PhysFrame<S>
fn clone(&self) -> PhysFrame<S>
[src]
fn clone(&self) -> PhysFrame<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<S: Copy + PageSize> Copy for PhysFrame<S>
[src]
impl<S: Copy + PageSize> Copy for PhysFrame<S>
impl<S: PartialEq + PageSize> PartialEq for PhysFrame<S>
[src]
impl<S: PartialEq + PageSize> PartialEq for PhysFrame<S>
fn eq(&self, other: &PhysFrame<S>) -> bool
[src]
fn eq(&self, other: &PhysFrame<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PhysFrame<S>) -> bool
[src]
fn ne(&self, other: &PhysFrame<S>) -> bool
This method tests for !=
.
impl<S: Eq + PageSize> Eq for PhysFrame<S>
[src]
impl<S: Eq + PageSize> Eq for PhysFrame<S>
impl<S: PartialOrd + PageSize> PartialOrd for PhysFrame<S>
[src]
impl<S: PartialOrd + PageSize> PartialOrd for PhysFrame<S>
fn partial_cmp(&self, other: &PhysFrame<S>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &PhysFrame<S>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &PhysFrame<S>) -> bool
[src]
fn lt(&self, other: &PhysFrame<S>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &PhysFrame<S>) -> bool
[src]
fn le(&self, other: &PhysFrame<S>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &PhysFrame<S>) -> bool
[src]
fn gt(&self, other: &PhysFrame<S>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &PhysFrame<S>) -> bool
[src]
fn ge(&self, other: &PhysFrame<S>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<S: Ord + PageSize> Ord for PhysFrame<S>
[src]
impl<S: Ord + PageSize> Ord for PhysFrame<S>
fn cmp(&self, other: &PhysFrame<S>) -> Ordering
[src]
fn cmp(&self, other: &PhysFrame<S>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<S: PageSize> Debug for PhysFrame<S>
[src]
impl<S: PageSize> Debug for PhysFrame<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: PageSize> Add<u64> for PhysFrame<S>
[src]
impl<S: PageSize> Add<u64> for PhysFrame<S>
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Self::Output
[src]
fn add(self, rhs: u64) -> Self::Output
Performs the +
operation.
impl<S: PageSize> AddAssign<u64> for PhysFrame<S>
[src]
impl<S: PageSize> AddAssign<u64> for PhysFrame<S>
fn add_assign(&mut self, rhs: u64)
[src]
fn add_assign(&mut self, rhs: u64)
Performs the +=
operation.
impl<S: PageSize> Sub<u64> for PhysFrame<S>
[src]
impl<S: PageSize> Sub<u64> for PhysFrame<S>
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: u64) -> Self::Output
[src]
fn sub(self, rhs: u64) -> Self::Output
Performs the -
operation.
impl<S: PageSize> SubAssign<u64> for PhysFrame<S>
[src]
impl<S: PageSize> SubAssign<u64> for PhysFrame<S>
fn sub_assign(&mut self, rhs: u64)
[src]
fn sub_assign(&mut self, rhs: u64)
Performs the -=
operation.
impl<S: PageSize> Sub<PhysFrame<S>> for PhysFrame<S>
[src]
impl<S: PageSize> Sub<PhysFrame<S>> for PhysFrame<S>