pub struct Frame {
pub cols: u16,
pub rows: u16,
pub kind: FrameKind,
pub cursor_row: u16,
pub cursor_col: u16,
pub cursor_visible: bool,
pub cursor_shape: CursorShape,
pub cursor_blink: bool,
pub scroll: Option<ScrollOp>,
pub spans: Vec<Span>,
pub side_table: Vec<Vec<char>>,
pub link_table: Vec<String>,
}Expand description
One serialized damage cycle: the decoded logical form that encode/decode
round-trip. side_table holds this frame’s grapheme clusters (referenced by
each cell’s frame-local extra); link_table holds its OSC 8 hyperlink URIs
(referenced by each cell’s frame-local link).
Fields§
§cols: u16§rows: u16§kind: FrameKind§cursor_row: u16Cursor row/col in screen coordinates (0-based), and whether the engine shows it (DECTCEM). Rides in the header because the cursor moves with almost every frame (#38). Drawing the cursor — cell-invert / overlay — stays the consumer’s renderer adapter; the engine only reports state.
cursor_col: u16§cursor_visible: bool§cursor_shape: CursorShapeThe caret shape (DECSCUSR #89) and whether it blinks (att610 ?12, #81). Reported for the renderer; drawing/animation stays the consumer’s.
cursor_blink: bool§scroll: Option<ScrollOp>§spans: Vec<Span>§side_table: Vec<Vec<char>>§link_table: Vec<String>Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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