pub enum RichTextSubElement {
Section(Box<RichTextSection>),
List(Box<RichTextList>),
Preformatted(Box<RichTextPreformatted>),
Quote(Box<RichTextQuote>),
}Expand description
Rich text sub elements representation.
Variants§
Section(Box<RichTextSection>)
List(Box<RichTextList>)
Preformatted(Box<RichTextPreformatted>)
Quote(Box<RichTextQuote>)
Trait Implementations§
Source§impl Clone for RichTextSubElement
impl Clone for RichTextSubElement
Source§fn clone(&self) -> RichTextSubElement
fn clone(&self) -> RichTextSubElement
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 RichTextSubElement
impl Debug for RichTextSubElement
Source§impl From<RichTextList> for RichTextSubElement
impl From<RichTextList> for RichTextSubElement
Source§fn from(value: RichTextList) -> Self
fn from(value: RichTextList) -> Self
Converts to this type from the input type.
Source§impl From<RichTextPreformatted> for RichTextSubElement
impl From<RichTextPreformatted> for RichTextSubElement
Source§fn from(value: RichTextPreformatted) -> Self
fn from(value: RichTextPreformatted) -> Self
Converts to this type from the input type.
Source§impl From<RichTextQuote> for RichTextSubElement
impl From<RichTextQuote> for RichTextSubElement
Source§fn from(value: RichTextQuote) -> Self
fn from(value: RichTextQuote) -> Self
Converts to this type from the input type.
Source§impl From<RichTextSection> for RichTextSubElement
impl From<RichTextSection> for RichTextSubElement
Source§fn from(value: RichTextSection) -> Self
fn from(value: RichTextSection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RichTextSubElement
impl PartialEq for RichTextSubElement
Source§fn eq(&self, other: &RichTextSubElement) -> bool
fn eq(&self, other: &RichTextSubElement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RichTextSubElement
impl Serialize for RichTextSubElement
impl StructuralPartialEq for RichTextSubElement
Auto Trait Implementations§
impl Freeze for RichTextSubElement
impl RefUnwindSafe for RichTextSubElement
impl Send for RichTextSubElement
impl Sync for RichTextSubElement
impl Unpin for RichTextSubElement
impl UnsafeUnpin for RichTextSubElement
impl UnwindSafe for RichTextSubElement
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