pub struct ChainSnapshot { /* private fields */ }Expand description
What a fold held after the line at seq, and the chain hash that
names that line.
Implementations§
Source§impl ChainSnapshot
impl ChainSnapshot
Sourcepub fn cut(
fold_version: u32,
seq: Seq,
line: &[u8],
views: Vec<u8>,
) -> ChainSnapshot
pub fn cut( fold_version: u32, seq: Seq, line: &[u8], views: Vec<u8>, ) -> ChainSnapshot
Cut a snapshot after line, the raw line (without its \n) at seq.
pub fn fold_version(&self) -> u32
pub fn seq(&self) -> Seq
pub fn views(&self) -> &[u8] ⓘ
Sourcepub fn same_line(&self, other: &ChainSnapshot) -> bool
pub fn same_line(&self, other: &ChainSnapshot) -> bool
Whether other was cut at the same line of the same ledger: the
same seq and the same chain hash, whatever each fold holds.
Sourcepub fn fit(&self, line_at_seq: &[u8]) -> SnapshotFit
pub fn fit(&self, line_at_seq: &[u8]) -> SnapshotFit
Judge the raw line a positioned read found at Self::seq.
Trait Implementations§
Source§impl Clone for ChainSnapshot
impl Clone for ChainSnapshot
Source§impl Debug for ChainSnapshot
impl Debug for ChainSnapshot
impl Eq for ChainSnapshot
Source§impl PartialEq for ChainSnapshot
impl PartialEq for ChainSnapshot
impl StructuralPartialEq for ChainSnapshot
Auto Trait Implementations§
impl Freeze for ChainSnapshot
impl RefUnwindSafe for ChainSnapshot
impl Send for ChainSnapshot
impl Sync for ChainSnapshot
impl Unpin for ChainSnapshot
impl UnsafeUnpin for ChainSnapshot
impl UnwindSafe for ChainSnapshot
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