pub struct NoopShaper;Expand description
Identity shaper for monospace terminal rendering.
Maps each grapheme cluster to a single glyph with uniform advance. This is the correct shaping backend for fixed-width terminal output where each cell is one column wide (or two for CJK/wide characters).
The glyph ID is set to the first codepoint of each grapheme, and the advance is the grapheme’s display width in terminal cells.
Trait Implementations§
Source§impl TextShaper for NoopShaper
impl TextShaper for NoopShaper
Source§fn shape(
&self,
text: &str,
_script: Script,
_direction: RunDirection,
_features: &FontFeatures,
) -> ShapedRun
fn shape( &self, text: &str, _script: Script, _direction: RunDirection, _features: &FontFeatures, ) -> ShapedRun
Shape a text run into positioned glyphs. Read more
Auto Trait Implementations§
impl Freeze for NoopShaper
impl RefUnwindSafe for NoopShaper
impl Send for NoopShaper
impl Sync for NoopShaper
impl Unpin for NoopShaper
impl UnsafeUnpin for NoopShaper
impl UnwindSafe for NoopShaper
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