pub struct TextLinePrefixWidths { /* private fields */ }Implementations§
Source§impl TextLinePrefixWidths
impl TextLinePrefixWidths
pub fn from_parts( prefix_widths: Vec<f32>, separator_before: Vec<f32>, non_empty_overhang: f32, ) -> Option<Self>
pub fn monospaced( char_count: usize, char_width: f32, letter_spacing: f32, ) -> Option<Self>
pub fn char_count(&self) -> usize
pub fn width_for_char_range(&self, start: usize, end: usize) -> Option<f32>
Trait Implementations§
Source§impl Clone for TextLinePrefixWidths
impl Clone for TextLinePrefixWidths
Source§fn clone(&self) -> TextLinePrefixWidths
fn clone(&self) -> TextLinePrefixWidths
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextLinePrefixWidths
impl Debug for TextLinePrefixWidths
Source§impl PartialEq for TextLinePrefixWidths
impl PartialEq for TextLinePrefixWidths
Source§fn eq(&self, other: &TextLinePrefixWidths) -> bool
fn eq(&self, other: &TextLinePrefixWidths) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextLinePrefixWidths
Auto Trait Implementations§
impl Freeze for TextLinePrefixWidths
impl RefUnwindSafe for TextLinePrefixWidths
impl Send for TextLinePrefixWidths
impl Sync for TextLinePrefixWidths
impl Unpin for TextLinePrefixWidths
impl UnsafeUnpin for TextLinePrefixWidths
impl UnwindSafe for TextLinePrefixWidths
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