pub struct ScanResult {
pub entries: Vec<ScannedExcerpt>,
pub clock: Vec<ClockSpan>,
}Expand description
What one file’s scan produced.
A record rather than a bare row list because the clock report is not a view
of the rows — see ClockSpan. It rides the same call so the walk still
makes ONE producer call per file: the scan is a producer’s critical path,
and a second crossing to carry data most files have none of would double it.
Fields§
§entries: Vec<ScannedExcerpt>The agenda rows this file contributes, in any order (the host sorts).
clock: Vec<ClockSpan>Every clocked (headline, day) the producer saw in the file, whether or not it became a row.
Implementations§
Source§impl ScanResult
impl ScanResult
Sourcepub fn rows(entries: Vec<ScannedExcerpt>) -> Self
pub fn rows(entries: Vec<ScannedExcerpt>) -> Self
The common case: rows and nothing clocked.
Trait Implementations§
Source§impl Clone for ScanResult
impl Clone for ScanResult
Source§fn clone(&self) -> ScanResult
fn clone(&self) -> ScanResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScanResult
impl Debug for ScanResult
Source§impl Default for ScanResult
impl Default for ScanResult
Source§fn default() -> ScanResult
fn default() -> ScanResult
Returns the “default value” for a type. Read more
impl Eq for ScanResult
Source§impl PartialEq for ScanResult
impl PartialEq for ScanResult
impl StructuralPartialEq for ScanResult
Auto Trait Implementations§
impl Freeze for ScanResult
impl RefUnwindSafe for ScanResult
impl Send for ScanResult
impl Sync for ScanResult
impl Unpin for ScanResult
impl UnsafeUnpin for ScanResult
impl UnwindSafe for ScanResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.