pub struct TextMeasureCaches { /* private fields */ }Implementations§
Source§impl TextMeasureCaches
impl TextMeasureCaches
pub fn new() -> Self
pub fn clear(&mut self)
pub fn buckets_len(&self) -> usize
pub fn shaping_entries_len(&self) -> usize
pub fn measure_plain( &mut self, shaper: &mut ParleyShaper, text: &str, style: &TextStyle, constraints: TextConstraints, font_stack_key: u64, ) -> TextMetrics
pub fn measure_attributed( &mut self, shaper: &mut ParleyShaper, rich: &AttributedText, base_style: &TextStyle, constraints: TextConstraints, font_stack_key: u64, ) -> TextMetrics
Trait Implementations§
Source§impl Debug for TextMeasureCaches
impl Debug for TextMeasureCaches
Auto Trait Implementations§
impl Freeze for TextMeasureCaches
impl RefUnwindSafe for TextMeasureCaches
impl Send for TextMeasureCaches
impl Sync for TextMeasureCaches
impl Unpin for TextMeasureCaches
impl UnsafeUnpin for TextMeasureCaches
impl UnwindSafe for TextMeasureCaches
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