pub struct RenderFrame {
pub mode: SnapshotMode,
pub cursor_row: u32,
pub cursor_col: u32,
pub cursor_shape: CursorShape,
pub viewport_top: u32,
pub line_count: u32,
}Expand description
Engine render frame consumed by the host once per redraw.
Borrow-style — the engine builds it on demand from its internal state without allocating clones of large fields. Hosts diff across frames to decide what to repaint.
Coarse today: covers mode, cursor, cursor shape, viewport top, and
a snapshot of the current line count (to size the gutter). The
SPEC-target fields (selections, highlights, command_line,
search_prompt, status_line) land once trait extraction wires
the FSM through SelectionSet and the highlight pipeline.
Fields§
§mode: SnapshotMode§cursor_row: u32§cursor_col: u32§cursor_shape: CursorShape§viewport_top: u32§line_count: u32Trait Implementations§
Source§impl Clone for RenderFrame
impl Clone for RenderFrame
Source§fn clone(&self) -> RenderFrame
fn clone(&self) -> RenderFrame
Returns a duplicate of the value. Read more
1.0.0 · 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 RenderFrame
impl Debug for RenderFrame
Source§impl Hash for RenderFrame
impl Hash for RenderFrame
Source§impl PartialEq for RenderFrame
impl PartialEq for RenderFrame
impl Copy for RenderFrame
impl Eq for RenderFrame
impl StructuralPartialEq for RenderFrame
Auto Trait Implementations§
impl Freeze for RenderFrame
impl RefUnwindSafe for RenderFrame
impl Send for RenderFrame
impl Sync for RenderFrame
impl Unpin for RenderFrame
impl UnsafeUnpin for RenderFrame
impl UnwindSafe for RenderFrame
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§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