pub struct RichText { /* private fields */ }
Implementations§
Source§impl RichText
impl RichText
pub fn get_text(&self) -> Cow<'static, str>
pub fn set_text<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn get_rich_text_elements(&self) -> &[TextElement]
pub fn get_rich_text_elements_mut(&mut self) -> &mut ThinVec<TextElement>
pub fn set_rich_text_elements( &mut self, value: impl Into<ThinVec<TextElement>>, ) -> &mut Self
pub fn add_rich_text_elements(&mut self, value: TextElement) -> &mut Self
Trait Implementations§
Source§impl PartialOrd for RichText
impl PartialOrd for RichText
impl StructuralPartialEq for RichText
Auto Trait Implementations§
impl Freeze for RichText
impl RefUnwindSafe for RichText
impl Send for RichText
impl Sync for RichText
impl Unpin for RichText
impl UnwindSafe for RichText
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