pub struct LineProcessor { /* private fields */ }Expand description
State for text processing underlines and strikethroughs using line-straddler.
Implementations§
Source§impl LineProcessor
impl LineProcessor
Sourcepub fn handle_glyph(&mut self, glyph: &LayoutGlyph, line_y: f32, color: Color)
pub fn handle_glyph(&mut self, glyph: &LayoutGlyph, line_y: f32, color: Color)
Handle a glyph.
Sourcepub fn lines(&mut self) -> Vec<StyledLine>
pub fn lines(&mut self) -> Vec<StyledLine>
Take the associated lines.
Trait Implementations§
Source§impl Debug for LineProcessor
impl Debug for LineProcessor
Auto Trait Implementations§
impl Freeze for LineProcessor
impl RefUnwindSafe for LineProcessor
impl Send for LineProcessor
impl Sync for LineProcessor
impl Unpin for LineProcessor
impl UnwindSafe for LineProcessor
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.