pub struct Known { /* private fields */ }Expand description
What a store already holds, so an episode read again (the transcript sweep, session end,
borg assimilate) is never appended twice. Read once, then grown with what is appended.
Implementations§
Source§impl Known
impl Known
Sourcepub fn holds(&self, e: &Episode) -> bool
pub fn holds(&self, e: &Episode) -> bool
Whether e is already held: an episode with its id; one of its session with the same words that no
transcript named by its call (the hook stamps capture time, a transcript message time, so their ids
differ; two calls the transcript named are two events, whatever their words); or, for a prompt’s
episode, a prompt’s of its session within SAME_MS (the hook and the transcript cut a prompt
alike, but an older store’s wording may differ). An answer is matched by its id alone: only a
transcript records answers, and the same pick to two questions is two answers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Known
impl RefUnwindSafe for Known
impl Send for Known
impl Sync for Known
impl Unpin for Known
impl UnsafeUnpin for Known
impl UnwindSafe for Known
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