pub struct RichTextRun {
pub text: String,
pub is_bold: bool,
pub is_italic: bool,
}Expand description
A text run with optional bold and italic styling.
Fields§
§text: String§is_bold: bool§is_italic: boolImplementations§
Trait Implementations§
Source§impl Clone for RichTextRun
impl Clone for RichTextRun
Source§fn clone(&self) -> RichTextRun
fn clone(&self) -> RichTextRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RichTextRun
impl Debug for RichTextRun
Source§impl Default for RichTextRun
impl Default for RichTextRun
Source§fn default() -> RichTextRun
fn default() -> RichTextRun
Returns the “default value” for a type. Read more
impl Eq for RichTextRun
Source§impl PartialEq for RichTextRun
impl PartialEq for RichTextRun
impl StructuralPartialEq for RichTextRun
Auto Trait Implementations§
impl Freeze for RichTextRun
impl RefUnwindSafe for RichTextRun
impl Send for RichTextRun
impl Sync for RichTextRun
impl Unpin for RichTextRun
impl UnsafeUnpin for RichTextRun
impl UnwindSafe for RichTextRun
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