pub struct LineSpan {
pub runs: Range<usize>,
pub offset: f32,
pub width: u32,
}Expand description
One span of a line: the runs set in it, and where they go.
Fields§
§runs: Range<usize>The runs of Line::runs set here.
offset: f32Points from the line’s own leading edge the span is set at.
width: u32Advance of the span’s glyphs, in font units.
Trait Implementations§
impl StructuralPartialEq for LineSpan
Auto Trait Implementations§
impl Freeze for LineSpan
impl RefUnwindSafe for LineSpan
impl Send for LineSpan
impl Sync for LineSpan
impl Unpin for LineSpan
impl UnsafeUnpin for LineSpan
impl UnwindSafe for LineSpan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.