pub enum Inline {
Text(String),
Emphasis(Vec<Inline>),
Strong(Vec<Inline>),
Strikethrough(Vec<Inline>),
Code(String),
Link {
url: String,
title: String,
content: Vec<Inline>,
},
Image(Image),
LineBreak,
}Expand description
A run of text inside a block.
Variants§
Text(String)
Plain text; a soft line break in the source is a space here.
Emphasis(Vec<Inline>)
Strong(Vec<Inline>)
Strikethrough(Vec<Inline>)
Code(String)
Link
An e-mail autolink’s url starts with mailto:.
Image(Image)
LineBreak
A hard line break.
Trait Implementations§
impl StructuralPartialEq for Inline
Auto Trait Implementations§
impl Forget for Inline
impl Freeze for Inline
impl Move for Inline
impl RefUnwindSafe for Inline
impl Send for Inlinewhere
RawVecInner: Send,
impl Sync for Inlinewhere
RawVecInner: Sync,
impl Unpin for Inline
impl UnsafeUnpin for Inlinewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Inline>: UnsafeUnpin,
impl UnwindSafe for Inlinewhere
RawVecInner: UnwindSafe,
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