pub struct BrokenLine {
pub chars: Vec<char>,
pub text: String,
pub char_positions: Vec<f64>,
pub width: f64,
pub hard_break: bool,
}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.
hard_break: boolTrue when the line ends at a forced break (\n and the like):
justification leaves it alone, as CSS text-align-last does.
Trait Implementations§
Source§impl Clone for BrokenLine
impl Clone for BrokenLine
Auto 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