[][src]Struct x86_64::structures::paging::page::PageRange

#[repr(C)]pub struct PageRange<S: PageSize = Size4KiB> {
    pub start: Page<S>,
    pub end: Page<S>,
}

A range of pages with exclusive upper bound.

Fields

start: Page<S>

The start of the range, inclusive.

end: Page<S>

The end of the range, exclusive.

Implementations

impl<S: PageSize> PageRange<S>[src]

pub fn is_empty(&self) -> bool[src]

Returns wether this range contains no pages.

impl PageRange<Size2MiB>[src]

pub fn as_4kib_page_range(self) -> PageRange<Size4KiB>

Notable traits for PageRange<S>

impl<S: PageSize> Iterator for PageRange<S> type Item = Page<S>;
[src]

Converts the range of 2MiB pages to a range of 4KiB pages.

Trait Implementations

impl<S: Clone + PageSize> Clone for PageRange<S>[src]

impl<S: Copy + PageSize> Copy for PageRange<S>[src]

impl<S: PageSize> Debug for PageRange<S>[src]

impl<S: Eq + PageSize> Eq for PageRange<S>[src]

impl<S: PageSize> Iterator for PageRange<S>[src]

type Item = Page<S>

The type of the elements being iterated over.

impl<S: PartialEq + PageSize> PartialEq<PageRange<S>> for PageRange<S>[src]

impl<S: PageSize> StructuralEq for PageRange<S>[src]

impl<S: PageSize> StructuralPartialEq for PageRange<S>[src]

Auto Trait Implementations

impl<S> Send for PageRange<S> where
    S: Send

impl<S> Sync for PageRange<S> where
    S: Sync

impl<S> Unpin for PageRange<S> where
    S: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.