pub enum PageIndexPolicy {
Skip,
Optional,
Required,
}
Expand description
Describes the policy for reading page indexes
Variants§
Skip
Do not read the page index.
Optional
Read the page index if it exists, otherwise do not error.
Required
Require the page index to exist, and error if it does not.
Trait Implementations§
Source§impl Clone for PageIndexPolicy
impl Clone for PageIndexPolicy
Source§fn clone(&self) -> PageIndexPolicy
fn clone(&self) -> PageIndexPolicy
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 PageIndexPolicy
impl Debug for PageIndexPolicy
Source§impl Default for PageIndexPolicy
impl Default for PageIndexPolicy
Source§fn default() -> PageIndexPolicy
fn default() -> PageIndexPolicy
Returns the “default value” for a type. Read more
Source§impl From<bool> for PageIndexPolicy
impl From<bool> for PageIndexPolicy
Source§impl PartialEq for PageIndexPolicy
impl PartialEq for PageIndexPolicy
impl Copy for PageIndexPolicy
impl Eq for PageIndexPolicy
impl StructuralPartialEq for PageIndexPolicy
Auto Trait Implementations§
impl Freeze for PageIndexPolicy
impl RefUnwindSafe for PageIndexPolicy
impl Send for PageIndexPolicy
impl Sync for PageIndexPolicy
impl Unpin for PageIndexPolicy
impl UnwindSafe for PageIndexPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more