pub struct CellPlacement {
pub cell_x: u32,
pub render_hint: RenderHint,
pub spacing: SpacingDelta,
pub byte_start: u32,
pub byte_end: u32,
pub grapheme_index: u32,
}Expand description
A single cell placement in the shaped output line.
Each placement represents one terminal cell position with its content, spacing adjustment, and source metadata for interaction overlays (cursor, selection, search highlighting).
Fields§
§cell_x: u32Cell column index (0-based from line start).
render_hint: RenderHintWhat to render in this cell.
spacing: SpacingDeltaSub-cell spacing delta from nominal position. The renderer may use this for sub-pixel positioning (web/GPU) or accumulate into whole-cell shifts (terminal).
byte_start: u32Source byte range in the original text.
byte_end: u32§grapheme_index: u32Grapheme index in the original text.
Trait Implementations§
Source§impl Clone for CellPlacement
impl Clone for CellPlacement
Source§fn clone(&self) -> CellPlacement
fn clone(&self) -> CellPlacement
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 CellPlacement
impl Debug for CellPlacement
Source§impl PartialEq for CellPlacement
impl PartialEq for CellPlacement
impl Eq for CellPlacement
impl StructuralPartialEq for CellPlacement
Auto Trait Implementations§
impl Freeze for CellPlacement
impl RefUnwindSafe for CellPlacement
impl Send for CellPlacement
impl Sync for CellPlacement
impl Unpin for CellPlacement
impl UnsafeUnpin for CellPlacement
impl UnwindSafe for CellPlacement
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.