pub enum TextType {
Plain(String),
Rich(Text),
}Expand description
Represents something that can be used as text: a plain &str or a Text.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextType
impl RefUnwindSafe for TextType
impl Send for TextType
impl Sync for TextType
impl Unpin for TextType
impl UnsafeUnpin for TextType
impl UnwindSafe for TextType
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