pub struct Text { /* private fields */ }Expand description
An Item that wraps strings.
Can be used as paragraphs, as captions, etc.
Supports Markdown bold formatting (**bold**)
Supports Markdown italic formatting (_bold_)
Supports Color text formatting (#blue{text})
Here are all the default colors:
- red
- green
- blue
- cyan
- magenta
- yellow
- black
- gray
- white
- darkgray
- lightgray
- brown
- lime
- olive
- orange
- pink
- purple
- teal
- violet
Other colors can be used by adding Packages or defining custom colors.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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