pub struct SeriesScan {
pub path: PathBuf,
pub header: Option<String>,
pub segments: Vec<Range<u64>>,
pub complete_bytes: u64,
pub file_bytes: u64,
pub first_dropped_offset: Option<u64>,
pub kept_after_dropped: bool,
}Expand description
Layout of a series.csv: its header, and the stretches of complete lines in order of their run ids.
Fields§
§path: PathBufPath of the scanned file.
header: Option<String>Header line as written with its line ending, None for a file with no complete header.
segments: Vec<Range<u64>>Byte ranges of the longest stretches of complete lines whose run ids never decrease, in file order.
complete_bytes: u64Number of bytes up to the end of the file’s last complete line.
file_bytes: u64Size in bytes of the file, 0 for a missing file.
first_dropped_offset: Option<u64>Offset of the first complete line the scan’s rule left out.
kept_after_dropped: boolWhether a line that the rule kept comes after a line that it left out.
Implementations§
Trait Implementations§
Source§impl Clone for SeriesScan
impl Clone for SeriesScan
Source§impl Debug for SeriesScan
impl Debug for SeriesScan
impl Eq for SeriesScan
Source§impl PartialEq for SeriesScan
impl PartialEq for SeriesScan
impl StructuralPartialEq for SeriesScan
Auto Trait Implementations§
impl Freeze for SeriesScan
impl RefUnwindSafe for SeriesScan
impl Send for SeriesScan
impl Sync for SeriesScan
impl Unpin for SeriesScan
impl UnsafeUnpin for SeriesScan
impl UnwindSafe for SeriesScan
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.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