Struct prototty_common::RichText
source · pub struct RichText {
pub parts: Vec<RichTextPart>,
pub size: Size,
}
Expand description
A text element, where the style of the text
can be controlled. A single RichText
element can have
several different parts, each styled differently.
Fields
parts: Vec<RichTextPart>
size: Size
Implementations
Trait Implementations
sourceimpl View<RichText> for DefaultRichTextView
impl View<RichText> for DefaultRichTextView
Auto Trait Implementations
impl RefUnwindSafe for RichText
impl Send for RichText
impl Sync for RichText
impl Unpin for RichText
impl UnwindSafe for RichText
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more