Enum egui_demo_lib::easy_mark::easy_mark_parser::Item
source · [−]pub enum Item<'a> {
Newline,
Text(Style, &'a str),
Hyperlink(Style, &'a str, &'a str),
Indentation(usize),
QuoteIndent,
BulletPoint,
NumberedPoint(&'a str),
Separator,
CodeBlock(&'a str, &'a str),
}
Variants
Newline
\n
Text(Style, &'a str)
Hyperlink(Style, &'a str, &'a str)
title, url
Indentation(usize)
leading space before e.g. a Self::BulletPoint
.
QuoteIndent
BulletPoint
- a point well made.
NumberedPoint(&'a str)
- numbered list. The string is the number(s).
Separator
CodeBlock(&'a str, &'a str)
language, code
Trait Implementations
sourceimpl<'a> PartialEq<Item<'a>> for Item<'a>
impl<'a> PartialEq<Item<'a>> for Item<'a>
impl<'a> Copy for Item<'a>
impl<'a> Eq for Item<'a>
impl<'a> StructuralEq for Item<'a>
impl<'a> StructuralPartialEq for Item<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Item<'a>
impl<'a> Send for Item<'a>
impl<'a> Sync for Item<'a>
impl<'a> Unpin for Item<'a>
impl<'a> UnwindSafe for Item<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.