pub struct RichTextParagraph { /* private fields */ }Expand description
A paragraph of rich-text inline values.
Implementations§
Source§impl RichTextParagraph
impl RichTextParagraph
Sourcepub fn new(inlines: impl IntoIterator<Item = RichTextInline>) -> Self
pub fn new(inlines: impl IntoIterator<Item = RichTextInline>) -> Self
Creates a paragraph from inline values.
Trait Implementations§
Source§impl Clone for RichTextParagraph
impl Clone for RichTextParagraph
Source§fn clone(&self) -> RichTextParagraph
fn clone(&self) -> RichTextParagraph
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 RichTextParagraph
impl Debug for RichTextParagraph
Source§impl Default for RichTextParagraph
impl Default for RichTextParagraph
Source§fn default() -> RichTextParagraph
fn default() -> RichTextParagraph
Returns the “default value” for a type. Read more
impl Eq for RichTextParagraph
Source§impl PartialEq for RichTextParagraph
impl PartialEq for RichTextParagraph
impl StructuralPartialEq for RichTextParagraph
Auto Trait Implementations§
impl Freeze for RichTextParagraph
impl RefUnwindSafe for RichTextParagraph
impl Send for RichTextParagraph
impl Sync for RichTextParagraph
impl Unpin for RichTextParagraph
impl UnsafeUnpin for RichTextParagraph
impl UnwindSafe for RichTextParagraph
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