pub struct TextLine {
pub text: String,
pub bbox: Rect,
pub chars: Vec<TextChar>,
}Expand description
A line of text.
Fields§
§text: StringThe line’s text, words separated by single spaces where the gaps call for them.
bbox: RectThe line’s bounding box.
chars: Vec<TextChar>The characters, in order.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TextLine
Auto Trait Implementations§
impl Freeze for TextLine
impl RefUnwindSafe for TextLine
impl Send for TextLine
impl Sync for TextLine
impl Unpin for TextLine
impl UnsafeUnpin for TextLine
impl UnwindSafe for TextLine
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