pub struct TextLayout {
pub lines: Vec<String>,
pub first_line_of_para: Vec<bool>,
pub size: Size,
}Expand description
Text wrapping and measurement result.
Fields§
§lines: Vec<String>The wrapped lines of text.
first_line_of_para: Vec<bool>Per-line flag: true when the line is the first line of a paragraph.
size: SizeTotal size of the text block.
Trait Implementations§
Source§impl Clone for TextLayout
impl Clone for TextLayout
Auto Trait Implementations§
impl Freeze for TextLayout
impl RefUnwindSafe for TextLayout
impl Send for TextLayout
impl Sync for TextLayout
impl Unpin for TextLayout
impl UnsafeUnpin for TextLayout
impl UnwindSafe for TextLayout
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