pub struct CaptureElision {
pub dropped_lines: usize,
pub kept_head_lines: usize,
}Expand description
What a step’s captured output lost to the head-plus-tail bound
(docs/spec/actions.md’s
“Capture”): two counts and no mark.
The mark that draws the gap is the consumer’s, chosen from its live glyph set at render
time, so an ascii reader gets an ascii mark; this is the same split
ADR 0010
makes between a provenance state and the glyph that renders it. Writing a formatted line
into StepResult::output instead would leave the consumer string-matching its own
quotation of another program’s screen, which a step printing that same text defeats.
Fields§
§dropped_lines: usizeHow many lines the bound dropped.
kept_head_lines: usizeHow many of StepResult::output’s own lines precede the gap, so a renderer draws
its mark after that many lines and before the kept tail.
Trait Implementations§
Source§impl Clone for CaptureElision
impl Clone for CaptureElision
Source§fn clone(&self) -> CaptureElision
fn clone(&self) -> CaptureElision
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 moreimpl Copy for CaptureElision
Source§impl Debug for CaptureElision
impl Debug for CaptureElision
impl Eq for CaptureElision
Source§impl PartialEq for CaptureElision
impl PartialEq for CaptureElision
impl StructuralPartialEq for CaptureElision
Auto Trait Implementations§
impl Freeze for CaptureElision
impl RefUnwindSafe for CaptureElision
impl Send for CaptureElision
impl Sync for CaptureElision
impl Unpin for CaptureElision
impl UnsafeUnpin for CaptureElision
impl UnwindSafe for CaptureElision
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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