pub struct PageNumber(/* private fields */);Expand description
A page number in the database file.
Page numbers are 1-based (page 0 does not exist). Page 1 is the database
header page. The maximum page count is u32::MAX - 1 (4,294,967,294).
Implementations§
Trait Implementations§
Source§impl Clone for PageNumber
impl Clone for PageNumber
Source§fn clone(&self) -> PageNumber
fn clone(&self) -> PageNumber
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 Debug for PageNumber
impl Debug for PageNumber
Source§impl<'de> Deserialize<'de> for PageNumber
impl<'de> Deserialize<'de> for PageNumber
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PageNumber
impl Display for PageNumber
Source§impl Hash for PageNumber
impl Hash for PageNumber
Source§impl Ord for PageNumber
impl Ord for PageNumber
Source§fn cmp(&self, other: &PageNumber) -> Ordering
fn cmp(&self, other: &PageNumber) -> 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 PartialEq for PageNumber
impl PartialEq for PageNumber
Source§impl PartialOrd for PageNumber
impl PartialOrd for PageNumber
Source§impl Serialize for PageNumber
impl Serialize for PageNumber
Source§impl TryFrom<u32> for PageNumber
impl TryFrom<u32> for PageNumber
impl Copy for PageNumber
impl Eq for PageNumber
impl StructuralPartialEq for PageNumber
Auto Trait Implementations§
impl Freeze for PageNumber
impl RefUnwindSafe for PageNumber
impl Send for PageNumber
impl Sync for PageNumber
impl Unpin for PageNumber
impl UnsafeUnpin for PageNumber
impl UnwindSafe for PageNumber
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).