pub struct TextElement {
pub text: String,
pub style: Option<RichTextStyle>,
/* private fields */
}Expand description
Fields§
§text: String§style: Option<RichTextStyle>Implementations§
Source§impl TextElement
impl TextElement
Trait Implementations§
Source§impl Clone for TextElement
impl Clone for TextElement
Source§impl Debug for TextElement
impl Debug for TextElement
Source§impl<'de> Deserialize<'de> for TextElement
impl<'de> Deserialize<'de> for TextElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TextElement> for PreformattedElement
impl From<TextElement> for PreformattedElement
Source§fn from(value: TextElement) -> Self
fn from(value: TextElement) -> Self
Converts to this type from the input type.
Source§impl From<TextElement> for RichTextElement
impl From<TextElement> for RichTextElement
Source§fn from(value: TextElement) -> Self
fn from(value: TextElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TextElement
impl PartialEq for TextElement
Source§impl Serialize for TextElement
impl Serialize for TextElement
impl StructuralPartialEq for TextElement
Auto Trait Implementations§
impl Freeze for TextElement
impl RefUnwindSafe for TextElement
impl Send for TextElement
impl Sync for TextElement
impl Unpin for TextElement
impl UnsafeUnpin for TextElement
impl UnwindSafe for TextElement
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