pub struct BrokenLine {
pub chars: Vec<char>,
pub text: String,
pub char_positions: Vec<f64>,
pub width: f64,
}Expand description
A line of text after line-breaking.
Fields§
§chars: Vec<char>The characters on this line.
text: StringThe text as a string.
char_positions: Vec<f64>X position of each character relative to line start.
width: f64Total width of the line.
Trait Implementations§
Source§impl Clone for BrokenLine
impl Clone for BrokenLine
Source§fn clone(&self) -> BrokenLine
fn clone(&self) -> BrokenLine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BrokenLine
impl RefUnwindSafe for BrokenLine
impl Send for BrokenLine
impl Sync for BrokenLine
impl Unpin for BrokenLine
impl UnsafeUnpin for BrokenLine
impl UnwindSafe for BrokenLine
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