pub struct SessionRecollection { /* private fields */ }Expand description
What earlier sessions in this scope decided, as one session reads it when it opens.
A rendering, not a copy of the memory. Two rules make it one:
Decisions and constraints first. A session opening has a bound on what it can carry, and what it carries first is what a later session is most likely to act on: what was settled, and what was ruled out. Observations and outcomes follow. Inside each group the order is the order the entries came back in, so a backend that keeps its writes in order stays readable as a sequence.
Bounded, and it says when the bound bit. The rendering stops at the first entry that will not fit and reports itself truncated. An entry too large for the whole budget is dropped rather than cut: half a decision is a sentence that says something else.
Implementations§
Source§impl SessionRecollection
impl SessionRecollection
Sourcepub fn rendered(
scope: MemoryScope,
recalled: &[MemoryEntry],
budget: RecollectionBudget,
) -> Self
pub fn rendered( scope: MemoryScope, recalled: &[MemoryEntry], budget: RecollectionBudget, ) -> Self
Render what a scope holds into what an opening can carry.
pub fn scope(&self) -> &MemoryScope
pub fn entries(&self) -> &[RecalledEntry]
pub const fn completeness(&self) -> RecollectionCompleteness
Trait Implementations§
Source§impl Clone for SessionRecollection
impl Clone for SessionRecollection
Source§fn clone(&self) -> SessionRecollection
fn clone(&self) -> SessionRecollection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more