pub struct Code {
pub value: String,
pub position: Option<Position>,
pub lang: Option<String>,
pub meta: Option<String>,
pub fence: Option<CodeFence>,
}Expand description
Code (flow).
> | ~~~
^^^
> | a
^
> | ~~~
^^^Fields§
§value: StringContent model.
position: Option<Position>Positional info.
lang: Option<String>The language of computer code being marked up.
meta: Option<String>Custom info relating to the node.
fence: Option<CodeFence>Opening fence metadata, or None for indented code or an AST without
source fence information. This is independent of source positions.
Markdown serialization chooses its formatting from MarkdownOptions.
Trait Implementations§
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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