pub enum ReplaySpan {
Retained {
slot: u32,
capture: bool,
slot_offset: usize,
tape_start: usize,
tape_end: usize,
transform: RecordTransform,
recolors: Vec<(u32, Color)>,
bounds: Rect,
},
Dynamic {
tape_start: usize,
tape_end: usize,
},
}Expand description
One span of this frame’s recording, in tape order.
Variants§
Retained
The retained segment moved by transform; recolors are
(span-relative record offset, new color) patches — including
explicit restores to the capture color for records recolored on the
previous frame and clean again on this one, because the renderer’s
slot paint is a patched mirror that never resets on its own.
Fields
§
slot: u32The capture identity (CommandSegment::slot).
§
capture: boolTrue only on partition frames, where the snapshot IS the current
frame: this span’s records are the slot’s capture content and
transform is identity. Every later frame’s transform is motion
since exactly that content — never double-applied.
§
transform: RecordTransformDynamic
Materialize these current-tape entries through the ordinary path.
Trait Implementations§
Source§impl Clone for ReplaySpan
impl Clone for ReplaySpan
Source§fn clone(&self) -> ReplaySpan
fn clone(&self) -> ReplaySpan
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 ReplaySpan
impl Debug for ReplaySpan
Source§impl PartialEq for ReplaySpan
impl PartialEq for ReplaySpan
impl StructuralPartialEq for ReplaySpan
Auto Trait Implementations§
impl Freeze for ReplaySpan
impl RefUnwindSafe for ReplaySpan
impl Send for ReplaySpan
impl Sync for ReplaySpan
impl Unpin for ReplaySpan
impl UnsafeUnpin for ReplaySpan
impl UnwindSafe for ReplaySpan
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