pub struct Heard {
pub key: String,
pub tag: Tag,
pub run: Run,
pub asof: Seq,
pub time: Time,
pub coll: u32,
pub pages: BTreeSet<u32>,
pub last: BTreeSet<u32>,
}Expand description
One snapshot as a reader holds it, from the pages it heard (core §7.5, “Complete”): the pages of one key, CH’s tag, run, asof, time and coll, and which indices it holds.
Fields§
§key: StringThe key its pages were heard on: the snapshot key of a collection read, a member’s key of a member read.
tag: Tag§run: Run§asof: Seq§time: Time§coll: u32§pages: BTreeSet<u32>The indices held, each once however often it was heard.
last: BTreeSet<u32>The indices held whose more bit is 0.
Implementations§
Source§impl Heard
impl Heard
Sourcepub fn of(key: &str, page: &Page) -> Heard
pub fn of(key: &str, page: &Page) -> Heard
The snapshot page, heard on key, is a page of, holding none of
its pages yet.
Sourcepub fn holds(&self, key: &str, page: &Page) -> bool
pub fn holds(&self, key: &str, page: &Page) -> bool
Whether page, heard on key, is one of its pages: one key, CH’s
tag, run (its width included), asof, time and coll.
Trait Implementations§
impl Eq for Heard
impl StructuralPartialEq for Heard
Auto Trait Implementations§
impl Forget for Heard
impl Freeze for Heardwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<u32, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(u32, SetValZST)>>: Freeze,
impl Move for Heard
impl RefUnwindSafe for Heard
impl Send for Heard
impl Sync for Heard
impl Unpin for Heard
impl UnsafeUnpin for Heardwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<u32, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(u32, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for Heard
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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