[][src]Struct os_units::NumOfPages

pub struct NumOfPages<T: PageSize> { /* fields omitted */ }

Implementations

impl<T: PageSize> NumOfPages<T>[src]

pub const fn new(num_of_pages: usize) -> Self[src]

Creates a new instance with given value.

pub const fn as_usize(self) -> usize[src]

Returns the value.

pub const fn as_bytes(self) -> Bytes[src]

Converts the number of physical pages to bytes.

Trait Implementations

impl<T: PageSize> Add<NumOfPages<T>> for NumOfPages<T>[src]

type Output = NumOfPages<T>

The resulting type after applying the + operator.

impl<T: PageSize> AddAssign<NumOfPages<T>> for NumOfPages<T>[src]

impl<T: Clone + PageSize> Clone for NumOfPages<T>[src]

impl<T: Copy + PageSize> Copy for NumOfPages<T>[src]

impl<T: Debug + PageSize> Debug for NumOfPages<T>[src]

impl<T: PageSize> Div<usize> for NumOfPages<T>[src]

type Output = NumOfPages<T>

The resulting type after applying the / operator.

impl<T: Eq + PageSize> Eq for NumOfPages<T>[src]

impl<T: PageSize> Mul<NumOfPages<T>> for NumOfPages<T>[src]

type Output = NumOfPages<T>

The resulting type after applying the * operator.

impl<T: PageSize> Mul<usize> for NumOfPages<T>[src]

type Output = NumOfPages<T>

The resulting type after applying the * operator.

impl<T: PageSize> MulAssign<NumOfPages<T>> for NumOfPages<T>[src]

impl<T: PageSize> MulAssign<usize> for NumOfPages<T>[src]

impl<T: Ord + PageSize> Ord for NumOfPages<T>[src]

impl<T: PartialEq + PageSize> PartialEq<NumOfPages<T>> for NumOfPages<T>[src]

impl<T: PartialOrd + PageSize> PartialOrd<NumOfPages<T>> for NumOfPages<T>[src]

impl<T: PageSize> StructuralEq for NumOfPages<T>[src]

impl<T: PageSize> StructuralPartialEq for NumOfPages<T>[src]

impl<T: PageSize> Sub<NumOfPages<T>> for NumOfPages<T>[src]

type Output = NumOfPages<T>

The resulting type after applying the - operator.

impl<T: PageSize> SubAssign<NumOfPages<T>> for NumOfPages<T>[src]

Auto Trait Implementations

impl<T> Send for NumOfPages<T>

impl<T> Sync for NumOfPages<T>

impl<T> Unpin for NumOfPages<T>

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<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.