pub enum MarkdownTextElement<'a> {
Show 15 variants
    Plain(&'a str),
    Italic(&'a str),
    Bold(&'a str),
    BoldAndItalic(&'a str),
    Code(&'a str),
    StrikeThrough(&'a str),
    Emoji(&'a str),
    Latex(&'a str),
    Expression(&'a str),
    Highlight(&'a str),
    Superscript(&'a str),
    Subscript(&'a str),
    Tag(&'a str),
    Link {
        on: RawText<'a>,
        to: &'a str,
    },
    Media {
        alt: &'a str,
        source: &'a str,
    },
}Expand description
Some are prefixes, some are wrapped
Variants§
Plain(&'a str)
Italic(&'a str)
*hi* or _hi_
Bold(&'a str)
**hi** or __hi__
BoldAndItalic(&'a str)
hi
Code(&'a str)
`code`
StrikeThrough(&'a str)
~~gone~~
Emoji(&'a str)
:emoji:
Latex(&'a str)
$\sin$
Expression(&'a str)
{something} TODO WIP
Highlight(&'a str)
==hightlighted==
Superscript(&'a str)
^superscript^
Subscript(&'a str)
~subscript~ (unfortuantly not _)
Tag(&'a str)
#item
Link
[on](to)
Media

Implementations§
Source§impl<'a> MarkdownTextElement<'a>
 
impl<'a> MarkdownTextElement<'a>
pub fn no_decoration(&self) -> &'a str
Trait Implementations§
Source§impl<'a> Clone for MarkdownTextElement<'a>
 
impl<'a> Clone for MarkdownTextElement<'a>
Source§fn clone(&self) -> MarkdownTextElement<'a>
 
fn clone(&self) -> MarkdownTextElement<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<'a> Debug for MarkdownTextElement<'a>
 
impl<'a> Debug for MarkdownTextElement<'a>
Source§impl<'a> PartialEq for MarkdownTextElement<'a>
 
impl<'a> PartialEq for MarkdownTextElement<'a>
impl<'a> Copy for MarkdownTextElement<'a>
impl<'a> Eq for MarkdownTextElement<'a>
impl<'a> StructuralPartialEq for MarkdownTextElement<'a>
Auto Trait Implementations§
impl<'a> Freeze for MarkdownTextElement<'a>
impl<'a> RefUnwindSafe for MarkdownTextElement<'a>
impl<'a> Send for MarkdownTextElement<'a>
impl<'a> Sync for MarkdownTextElement<'a>
impl<'a> Unpin for MarkdownTextElement<'a>
impl<'a> UnwindSafe for MarkdownTextElement<'a>
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