pub struct TextRun {
pub text: String,
pub font: Option<Font>,
}Expand description
A run of text with its own formatting within a rich text cell
Fields§
§text: StringThe text content of this run
font: Option<Font>Font properties for this run (None means inherit cell default)
Implementations§
Trait Implementations§
impl StructuralPartialEq for TextRun
Auto Trait Implementations§
impl Freeze for TextRun
impl RefUnwindSafe for TextRun
impl Send for TextRun
impl Sync for TextRun
impl Unpin for TextRun
impl UnsafeUnpin 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