pub enum RichText {
Show 16 variants
TextEmpty,
TextPlain(TextPlain),
TextBold(Box<TextBold>),
TextItalic(Box<TextItalic>),
TextUnderline(Box<TextUnderline>),
TextStrike(Box<TextStrike>),
TextFixed(Box<TextFixed>),
TextUrl(Box<TextUrl>),
TextEmail(Box<TextEmail>),
TextConcat(TextConcat),
TextSubscript(Box<TextSubscript>),
TextSuperscript(Box<TextSuperscript>),
TextMarked(Box<TextMarked>),
TextPhone(Box<TextPhone>),
TextImage(TextImage),
TextAnchor(Box<TextAnchor>),
}Expand description
Variants§
TextEmpty
TextPlain(TextPlain)
TextBold(Box<TextBold>)
TextItalic(Box<TextItalic>)
TextUnderline(Box<TextUnderline>)
TextStrike(Box<TextStrike>)
TextFixed(Box<TextFixed>)
TextUrl(Box<TextUrl>)
TextEmail(Box<TextEmail>)
TextConcat(TextConcat)
TextSubscript(Box<TextSubscript>)
TextSuperscript(Box<TextSuperscript>)
TextMarked(Box<TextMarked>)
TextPhone(Box<TextPhone>)
TextImage(TextImage)
TextAnchor(Box<TextAnchor>)
Trait Implementations§
Source§impl Deserializable for RichText
impl Deserializable for RichText
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<TextAnchor> for RichText
impl From<TextAnchor> for RichText
Source§fn from(x: TextAnchor) -> Self
fn from(x: TextAnchor) -> Self
Converts to this type from the input type.
Source§impl From<TextConcat> for RichText
impl From<TextConcat> for RichText
Source§fn from(x: TextConcat) -> Self
fn from(x: TextConcat) -> Self
Converts to this type from the input type.
Source§impl From<TextItalic> for RichText
impl From<TextItalic> for RichText
Source§fn from(x: TextItalic) -> Self
fn from(x: TextItalic) -> Self
Converts to this type from the input type.
Source§impl From<TextMarked> for RichText
impl From<TextMarked> for RichText
Source§fn from(x: TextMarked) -> Self
fn from(x: TextMarked) -> Self
Converts to this type from the input type.
Source§impl From<TextStrike> for RichText
impl From<TextStrike> for RichText
Source§fn from(x: TextStrike) -> Self
fn from(x: TextStrike) -> Self
Converts to this type from the input type.
Source§impl From<TextSubscript> for RichText
impl From<TextSubscript> for RichText
Source§fn from(x: TextSubscript) -> Self
fn from(x: TextSubscript) -> Self
Converts to this type from the input type.
Source§impl From<TextSuperscript> for RichText
impl From<TextSuperscript> for RichText
Source§fn from(x: TextSuperscript) -> Self
fn from(x: TextSuperscript) -> Self
Converts to this type from the input type.
Source§impl From<TextUnderline> for RichText
impl From<TextUnderline> for RichText
Source§fn from(x: TextUnderline) -> Self
fn from(x: TextUnderline) -> Self
Converts to this type from the input type.
Source§impl Serializable for RichText
impl Serializable for RichText
Source§impl TryFrom<RichText> for TextAnchor
impl TryFrom<RichText> for TextAnchor
Source§impl TryFrom<RichText> for TextConcat
impl TryFrom<RichText> for TextConcat
Source§impl TryFrom<RichText> for TextItalic
impl TryFrom<RichText> for TextItalic
Source§impl TryFrom<RichText> for TextMarked
impl TryFrom<RichText> for TextMarked
Source§impl TryFrom<RichText> for TextStrike
impl TryFrom<RichText> for TextStrike
Source§impl TryFrom<RichText> for TextSubscript
impl TryFrom<RichText> for TextSubscript
Source§impl TryFrom<RichText> for TextSuperscript
impl TryFrom<RichText> for TextSuperscript
Source§impl TryFrom<RichText> for TextUnderline
impl TryFrom<RichText> for TextUnderline
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 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