pub enum RenderHint {
DirectChar(char),
Grapheme {
text: String,
width: u8,
},
Continuation,
}Expand description
Hint for how to render a cell’s content.
This allows the renderer to choose the most efficient path: direct char encoding for simple characters, or grapheme pool interning for complex clusters (combining marks, emoji sequences, ligatures).
Variants§
DirectChar(char)
A single Unicode character that can be stored directly in a cell. This is the fast path for ASCII and most BMP characters.
Grapheme
A multi-codepoint grapheme cluster that requires pool interning. Contains the full cluster string and its display width.
Continuation
A continuation cell for a wide character (no content to render).
Trait Implementations§
Source§impl Clone for RenderHint
impl Clone for RenderHint
Source§fn clone(&self) -> RenderHint
fn clone(&self) -> RenderHint
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 RenderHint
impl Debug for RenderHint
Source§impl PartialEq for RenderHint
impl PartialEq for RenderHint
impl Eq for RenderHint
impl StructuralPartialEq for RenderHint
Auto Trait Implementations§
impl Freeze for RenderHint
impl RefUnwindSafe for RenderHint
impl Send for RenderHint
impl Sync for RenderHint
impl Unpin for RenderHint
impl UnsafeUnpin for RenderHint
impl UnwindSafe for RenderHint
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.