pub enum RawBlock {
Paragraph(String),
Code {
text: String,
language: Option<String>,
},
Quote {
text: String,
depth: u8,
},
}Expand description
A block-level piece of a message body.
Variants§
Paragraph(String)
Ordinary text, to be run through parse_inline.
Code
A fenced code block. Contents are inert.
Quote
One or more >-prefixed lines, already stripped of their markers.
Trait Implementations§
impl Eq for RawBlock
impl StructuralPartialEq for RawBlock
Auto Trait Implementations§
impl Freeze for RawBlock
impl RefUnwindSafe for RawBlock
impl Send for RawBlock
impl Sync for RawBlock
impl Unpin for RawBlock
impl UnsafeUnpin for RawBlock
impl UnwindSafe for RawBlock
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