pub struct RichText { /* private fields */ }Expand description
Paragraph content for a RichTextBlock.
Implementations§
Source§impl RichText
impl RichText
Sourcepub fn new(paragraphs: impl IntoIterator<Item = RichTextParagraph>) -> Self
pub fn new(paragraphs: impl IntoIterator<Item = RichTextParagraph>) -> Self
Creates rich text from paragraphs.
Sourcepub fn single_paragraph(
inlines: impl IntoIterator<Item = RichTextInline>,
) -> Self
pub fn single_paragraph( inlines: impl IntoIterator<Item = RichTextInline>, ) -> Self
Creates rich text containing one paragraph.
Trait Implementations§
impl Eq for RichText
impl StructuralPartialEq for RichText
Auto Trait Implementations§
impl !Send for RichText
impl !Sync for RichText
impl Freeze for RichText
impl RefUnwindSafe for RichText
impl Unpin for RichText
impl UnsafeUnpin 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