pub struct LaidOutSpan {
pub kind: LaidOutSpanKind,
pub line_index: usize,
pub rect: [f32; 4],
pub byte_range: Range<usize>,
}Expand description
A single laid-out span produced by the markup-aware layout path.
When a link wraps across two paragraph lines, it produces two
LaidOutSpan entries sharing the same URL and byte_range but with
distinct line_index / rect.
Fields§
§kind: LaidOutSpanKind§line_index: usizeWhich wrapped line this span piece lives on (0 for single-line).
rect: [f32; 4]Local-space rect: [x, y, width, height], same space as glyph quads.
byte_range: Range<usize>Byte range into the original markup source.
Trait Implementations§
Source§impl Clone for LaidOutSpan
impl Clone for LaidOutSpan
Source§fn clone(&self) -> LaidOutSpan
fn clone(&self) -> LaidOutSpan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LaidOutSpan
impl RefUnwindSafe for LaidOutSpan
impl Send for LaidOutSpan
impl Sync for LaidOutSpan
impl Unpin for LaidOutSpan
impl UnsafeUnpin for LaidOutSpan
impl UnwindSafe for LaidOutSpan
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