pub struct ShapeSpan {
pub level: Level,
pub words: Vec<ShapeWord>,
pub decoration_spans: Vec<(Range<usize>, GlyphDecorationData)>,
}Expand description
A shaped span (for bidirectional processing)
Fields§
§level: Level§words: Vec<ShapeWord>§decoration_spans: Vec<(Range<usize>, GlyphDecorationData)>Decoration data per user-level attr span within this shape span. Each entry maps a byte range to its decoration config and font metrics. Empty when no decorations are active.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapeSpan
impl RefUnwindSafe for ShapeSpan
impl Send for ShapeSpan
impl Sync for ShapeSpan
impl Unpin for ShapeSpan
impl UnwindSafe for ShapeSpan
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