pub enum EuvMdInline {
Text(&'static str),
Strong(&'static [EuvMdInline]),
Em(&'static [EuvMdInline]),
Del(&'static [EuvMdInline]),
Code(&'static str),
Link {
href: &'static str,
external: bool,
children: &'static [EuvMdInline],
},
Image {
src: &'static str,
alt: &'static str,
},
TaskMarker(bool),
SoftBreak,
HardBreak,
Html(&'static str),
}Expand description
One inline markdown node of the euv_markdown AST.
Variants§
Text(&'static str)
Plain text.
Strong(&'static [EuvMdInline])
Bold.
Em(&'static [EuvMdInline])
Italic.
Del(&'static [EuvMdInline])
Strikethrough.
Code(&'static str)
Inline code.
Link
A link (internal route or external URL).
Fields
§
children: &'static [EuvMdInline]Link text.
Image
An image.
TaskMarker(bool)
A task-list checkbox marker.
SoftBreak
A soft line break.
HardBreak
A hard line break.
Html(&'static str)
Raw inline HTML (escape hatch).
Trait Implementations§
Source§impl Clone for EuvMdInline
impl Clone for EuvMdInline
Source§fn clone(&self) -> EuvMdInline
fn clone(&self) -> EuvMdInline
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EuvMdInline
Auto Trait Implementations§
impl Freeze for EuvMdInline
impl RefUnwindSafe for EuvMdInline
impl Send for EuvMdInline
impl Sync for EuvMdInline
impl Unpin for EuvMdInline
impl UnsafeUnpin for EuvMdInline
impl UnwindSafe for EuvMdInline
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