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§
Source§impl PageNumber
impl PageNumber
Sourcepub const ONE: Self
pub const ONE: Self
Page 1 is the database header page containing the file header and the schema table root.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PageNumber
Source§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
impl Eq 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 (const: unstable) · 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§fn eq(&self, other: &PageNumber) -> bool
fn eq(&self, other: &PageNumber) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PageNumber
impl PartialOrd for PageNumber
Source§impl Serialize for PageNumber
impl Serialize 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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).