pub struct CellMeasure;Expand description
The text-cell tier, and tests.
Trait Implementations§
Source§impl Measure for CellMeasure
impl Measure for CellMeasure
fn advances(&self, text: &str, _font: Font) -> Rc<Vec<f32>>
Source§fn shows_emoji(&self) -> bool
fn shows_emoji(&self) -> bool
Whether emoji come out as themselves here. A terminal draws its own; painted text
needs a font for them on the machine that paints it, which a server may not have.
fn width(&self, text: &str, font: Font) -> f32
Auto Trait Implementations§
impl Forget for CellMeasure
impl Freeze for CellMeasure
impl Move for CellMeasure
impl RefUnwindSafe for CellMeasure
impl Send for CellMeasure
impl Sync for CellMeasure
impl Unpin for CellMeasure
impl UnsafeUnpin for CellMeasure
impl UnwindSafe for CellMeasure
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