pub struct CodeBlock {
pub language: String,
pub mode: CodeModeHint,
pub code: String,
pub tags: Tags,
pub props: Props,
}
Expand description
CodeBlock
contains computer code.
Fields§
§language: String
Computer language in which the code is written.
mode: CodeModeHint
Behavioural hint.
code: String
The code.
props: Props
Trait Implementations§
Source§impl PruneIncodoc for CodeBlock
impl PruneIncodoc for CodeBlock
fn prune_errors(&mut self)
fn prune_contentless(&mut self)
fn is_contentless(&self) -> bool
impl Eq for CodeBlock
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 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