pub struct TextMetrics {
pub positions: Vec<f32>,
pub byte_offsets: Vec<usize>,
}Fields§
§positions: Vec<f32>positions[i] = advance up to the i-th grapheme (len == graphemes + 1)
byte_offsets: Vec<usize>byte_offsets[i] = byte index of the i-th grapheme (last == text.len())
Auto Trait Implementations§
impl Freeze for TextMetrics
impl RefUnwindSafe for TextMetrics
impl Send for TextMetrics
impl Sync for TextMetrics
impl Unpin for TextMetrics
impl UnwindSafe for TextMetrics
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