[−][src]Struct x86_64::structures::paging::frame::PhysFrame
A physical memory frame.
Methods
impl<S: PageSize> PhysFrame<S>
[src]
pub fn from_start_address(address: PhysAddr) -> Result<Self, ()>
[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 fn containing_address(address: PhysAddr) -> Self
[src]
Returns the frame that contains the given physical address.
pub fn start_address(&self) -> PhysAddr
[src]
Returns the start address of the frame.
pub fn size(&self) -> u64
[src]
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]
ⓘImportant traits for 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]
ⓘImportant traits for PhysFrameRangeInclusive<S>
start: PhysFrame<S>,
end: PhysFrame<S>
) -> PhysFrameRangeInclusive<S>
Returns a range of frames, inclusive end
.
Trait Implementations
impl<S: PageSize> Add<u64> for PhysFrame<S>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Self::Output
[src]
impl<S: PageSize> AddAssign<u64> for PhysFrame<S>
[src]
fn add_assign(&mut self, rhs: u64)
[src]
impl<S: Clone + PageSize> Clone for PhysFrame<S>
[src]
fn clone(&self) -> PhysFrame<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Copy + PageSize> Copy for PhysFrame<S>
[src]
impl<S: PageSize> Debug for PhysFrame<S>
[src]
impl<S: Eq + PageSize> Eq for PhysFrame<S>
[src]
impl<S: Ord + PageSize> Ord for PhysFrame<S>
[src]
fn cmp(&self, other: &PhysFrame<S>) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<S: PartialEq + PageSize> PartialEq<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 lt(&self, other: &PhysFrame<S>) -> bool
[src]
fn le(&self, other: &PhysFrame<S>) -> bool
[src]
fn gt(&self, other: &PhysFrame<S>) -> bool
[src]
fn ge(&self, other: &PhysFrame<S>) -> bool
[src]
impl<S: PageSize> StructuralEq for PhysFrame<S>
[src]
impl<S: PageSize> StructuralPartialEq for PhysFrame<S>
[src]
impl<S: PageSize> Sub<PhysFrame<S>> for PhysFrame<S>
[src]
type Output = u64
The resulting type after applying the -
operator.
fn sub(self, rhs: PhysFrame<S>) -> Self::Output
[src]
impl<S: PageSize> Sub<u64> for PhysFrame<S>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: u64) -> Self::Output
[src]
impl<S: PageSize> SubAssign<u64> for PhysFrame<S>
[src]
fn sub_assign(&mut self, rhs: u64)
[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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,