pub struct TextRun {
pub text: String,
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub font_size: Option<u32>,
pub color: Option<String>,
}Expand description
Parsed text run with formatting
Fields§
§text: String§bold: bool§italic: bool§underline: bool§font_size: Option<u32>§color: Option<String>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextRun
impl RefUnwindSafe for TextRun
impl Send for TextRun
impl Sync for TextRun
impl Unpin for TextRun
impl UnwindSafe for TextRun
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