pub enum PieceClass {
NodeKeyed,
Empty,
DocumentFact,
}Expand description
What a table piece holds: data keyed by node address, nothing, or a fact about the document as a whole.
A table piece is the part of one table that one stage invocation produced;
the runner folds the pieces into the store (Table::absorb), and a
piece’s class says whether it states a fact about the document as a whole.
A table’s value type classifies its own table pieces with
Table::piece_class.
The class matters only during value
catch-up, which runs
per-tree stages (stages of
Scope::PerTree, run once for each
tree) again over a synthesized
value and folds their
table pieces into a catch-up store of its own. A table piece keyed by node
address, or an empty one, is accepted there. A table piece that states a
fact about the document as a whole (a label declared inside the synthesized
value, a numbered point) is refused with
StoreError::DocumentFactInValue,
because a synthesized value is not part of the document and must not add to
the document’s facts.
Variants§
NodeKeyed
The table piece holds data keyed by node address; an empty table keyed by node address also returns this class.
Empty
The table piece of a table not keyed by node address holds nothing.
DocumentFact
The table piece states a fact about the document as a whole, such as an entry keyed by a label or a count; a synthesized value may not produce one.
Trait Implementations§
Source§impl Clone for PieceClass
impl Clone for PieceClass
impl Copy for PieceClass
Source§impl Debug for PieceClass
impl Debug for PieceClass
impl Eq for PieceClass
Source§impl PartialEq for PieceClass
impl PartialEq for PieceClass
impl StructuralPartialEq for PieceClass
Auto Trait Implementations§
impl Forget for PieceClass
impl Freeze for PieceClass
impl Move for PieceClass
impl RefUnwindSafe for PieceClass
impl Send for PieceClass
impl Sync for PieceClass
impl Unpin for PieceClass
impl UnsafeUnpin for PieceClass
impl UnwindSafe for PieceClass
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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