pub struct OwnedPageRange<K> { /* private fields */ }
Expand description
An owned representation of a PageRange
containing an owned key interval
& page hash.
This type can be used to construct a PageRangeSnapshot
from owned values
(eliminating key/hash clones).
Implementations§
Source§impl<K> OwnedPageRange<K>where
K: PartialOrd,
impl<K> OwnedPageRange<K>where
K: PartialOrd,
Sourcepub fn new(start: K, end: K, hash: PageDigest) -> Self
pub fn new(start: K, end: K, hash: PageDigest) -> Self
Initialise a new OwnedPageRange
for the given inclusive key
interval, and page hash covering the key range.
§Panics
If start
is greater than end
, this method panics.
Trait Implementations§
Source§impl<K: Clone> Clone for OwnedPageRange<K>
impl<K: Clone> Clone for OwnedPageRange<K>
Source§fn clone(&self) -> OwnedPageRange<K>
fn clone(&self) -> OwnedPageRange<K>
Returns a copy 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<K: Debug> Debug for OwnedPageRange<K>
impl<K: Debug> Debug for OwnedPageRange<K>
Source§impl<K> FromIterator<OwnedPageRange<K>> for PageRangeSnapshot<K>
impl<K> FromIterator<OwnedPageRange<K>> for PageRangeSnapshot<K>
Source§fn from_iter<T: IntoIterator<Item = OwnedPageRange<K>>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = OwnedPageRange<K>>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl<K: PartialEq> PartialEq for OwnedPageRange<K>
impl<K: PartialEq> PartialEq for OwnedPageRange<K>
impl<K: Eq> Eq for OwnedPageRange<K>
impl<K> StructuralPartialEq for OwnedPageRange<K>
Auto Trait Implementations§
impl<K> Freeze for OwnedPageRange<K>where
K: Freeze,
impl<K> RefUnwindSafe for OwnedPageRange<K>where
K: RefUnwindSafe,
impl<K> Send for OwnedPageRange<K>where
K: Send,
impl<K> Sync for OwnedPageRange<K>where
K: Sync,
impl<K> Unpin for OwnedPageRange<K>where
K: Unpin,
impl<K> UnwindSafe for OwnedPageRange<K>where
K: UnwindSafe,
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