pub enum Inline<'src> {
Text(&'src str),
Bold(InlineSpan),
Italic(InlineSpan),
Link {
text: InlineSpan,
url: &'src str,
title: Option<&'src str>,
},
Image {
alt: &'src str,
url: &'src str,
title: Option<&'src str>,
},
Code(&'src str),
SoftBreak,
HardBreak,
}Expand description
An inline element within a Markdown block.
Variants§
Trait Implementations§
impl<'src> Copy for Inline<'src>
impl<'src> Eq for Inline<'src>
Source§impl<'src> PartialEq for Inline<'src>
impl<'src> PartialEq for Inline<'src>
impl<'src> StructuralPartialEq for Inline<'src>
Auto Trait Implementations§
impl<'src> Freeze for Inline<'src>
impl<'src> RefUnwindSafe for Inline<'src>
impl<'src> Send for Inline<'src>
impl<'src> Sync for Inline<'src>
impl<'src> Unpin for Inline<'src>
impl<'src> UnsafeUnpin for Inline<'src>
impl<'src> UnwindSafe for Inline<'src>
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