pub struct NumOfPages<T: PageSize> { /* private fields */ }Expand description
A struct representing the number of pages.
Implementations§
Source§impl<T: PageSize> NumOfPages<T>
impl<T: PageSize> NumOfPages<T>
Trait Implementations§
Source§impl<T: PageSize> Add for NumOfPages<T>
impl<T: PageSize> Add for NumOfPages<T>
Source§type Output = NumOfPages<T>
type Output = NumOfPages<T>
The resulting type after applying the
+ operator.Source§fn add(self, rhs: NumOfPages<T>) -> Self
fn add(self, rhs: NumOfPages<T>) -> Self
Performs the
+ operation. Read moreSource§impl<T: PageSize> AddAssign<usize> for NumOfPages<T>
impl<T: PageSize> AddAssign<usize> for NumOfPages<T>
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+= operation. Read moreSource§impl<T: PageSize> AddAssign for NumOfPages<T>
impl<T: PageSize> AddAssign for NumOfPages<T>
Source§fn add_assign(&mut self, rhs: NumOfPages<T>)
fn add_assign(&mut self, rhs: NumOfPages<T>)
Performs the
+= operation. Read moreSource§impl<T: Clone + PageSize> Clone for NumOfPages<T>
impl<T: Clone + PageSize> Clone for NumOfPages<T>
Source§fn clone(&self) -> NumOfPages<T>
fn clone(&self) -> NumOfPages<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: PageSize> Debug for NumOfPages<T>
impl<T: PageSize> Debug for NumOfPages<T>
Source§impl<T: PageSize> Display for NumOfPages<T>
impl<T: PageSize> Display for NumOfPages<T>
Source§impl<T: PageSize> DivAssign<usize> for NumOfPages<T>
impl<T: PageSize> DivAssign<usize> for NumOfPages<T>
Source§fn div_assign(&mut self, rhs: usize)
fn div_assign(&mut self, rhs: usize)
Performs the
/= operation. Read moreSource§impl<T: PageSize> MulAssign<usize> for NumOfPages<T>
impl<T: PageSize> MulAssign<usize> for NumOfPages<T>
Source§fn mul_assign(&mut self, rhs: usize)
fn mul_assign(&mut self, rhs: usize)
Performs the
*= operation. Read moreSource§impl<T: Ord + PageSize> Ord for NumOfPages<T>
impl<T: Ord + PageSize> Ord for NumOfPages<T>
Source§fn cmp(&self, other: &NumOfPages<T>) -> Ordering
fn cmp(&self, other: &NumOfPages<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + PageSize> PartialOrd for NumOfPages<T>
impl<T: PartialOrd + PageSize> PartialOrd for NumOfPages<T>
Source§impl<T: PageSize> Sub for NumOfPages<T>
impl<T: PageSize> Sub for NumOfPages<T>
Source§type Output = NumOfPages<T>
type Output = NumOfPages<T>
The resulting type after applying the
- operator.Source§fn sub(self, rhs: NumOfPages<T>) -> Self
fn sub(self, rhs: NumOfPages<T>) -> Self
Performs the
- operation. Read moreSource§impl<T: PageSize> SubAssign<usize> for NumOfPages<T>
impl<T: PageSize> SubAssign<usize> for NumOfPages<T>
Source§fn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
Performs the
-= operation. Read moreSource§impl<T: PageSize> SubAssign for NumOfPages<T>
impl<T: PageSize> SubAssign for NumOfPages<T>
Source§fn sub_assign(&mut self, rhs: NumOfPages<T>)
fn sub_assign(&mut self, rhs: NumOfPages<T>)
Performs the
-= operation. Read moreimpl<T: Copy + PageSize> Copy for NumOfPages<T>
impl<T: Eq + PageSize> Eq for NumOfPages<T>
impl<T: PageSize> StructuralPartialEq for NumOfPages<T>
Auto Trait Implementations§
impl<T> Freeze for NumOfPages<T>
impl<T> RefUnwindSafe for NumOfPages<T>
impl<T> Send for NumOfPages<T>
impl<T> Sync for NumOfPages<T>
impl<T> Unpin for NumOfPages<T>
impl<T> UnwindSafe for NumOfPages<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more