pub struct Line {
pub text: String,
pub start: usize,
pub end: usize,
pub width: f32,
}Expand description
A wrapped line of chapter text with its byte range into the source text. (char range so a WordMark’s offset maps to a line; the Slint reader renders one row per line and shows the left accent on the current sentence’s lines.)
Fields§
§text: String§start: usize§end: usize§width: f32Trait Implementations§
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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