pub struct CodeBlock {
pub language: Option<String>,
pub code: String,
pub callouts: Vec<Callout>,
}Expand description
A code or preformatted block.
Fields§
§language: Option<String>The language to highlight as; None is plain text (or the
renderer’s default language).
code: String§callouts: Vec<Callout>AsciiDoc callout markers in the code, to draw like the callout list.
Trait Implementations§
impl StructuralPartialEq for CodeBlock
Auto Trait Implementations§
impl Freeze for CodeBlock
impl RefUnwindSafe for CodeBlock
impl Send for CodeBlock
impl Sync for CodeBlock
impl Unpin for CodeBlock
impl UnsafeUnpin for CodeBlock
impl UnwindSafe for CodeBlock
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