pub struct Broken {
pub lines: Vec<Line>,
pub ends: Vec<usize>,
/* private fields */
}Expand description
One paragraph broken into lines: the lines themselves, and where each of them ended.
Fields§
§lines: Vec<Line>The lines, in reading order.
ends: Vec<usize>Where each line ended, as the paragraph counts the places it can be broken. A break from the end of a line sets the text that line left.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Broken
impl RefUnwindSafe for Broken
impl Send for Broken
impl Sync for Broken
impl Unpin for Broken
impl UnsafeUnpin for Broken
impl UnwindSafe for Broken
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
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.