pub struct CodeFence {
pub character: char,
pub length: usize,
pub indent: usize,
}Expand description
Opening fence metadata, matching Markly’s Node::Fence structure.
This describes the source opening fence. The closing fence can be longer or absent for ordinary code blocks. Markdown serialization may use a different fence according to its formatting options and content safety.
Fields§
§character: charFence marker: a backtick or tilde for code, or a dash/plus for frontmatter.
length: usizeNumber of markers in the opening fence.
indent: usizeOpening indentation in columns, relative to the containing block. Container markers and their required whitespace are excluded.
Trait Implementations§
impl Copy for CodeFence
impl Eq for CodeFence
impl StructuralPartialEq for CodeFence
Auto Trait Implementations§
impl Freeze for CodeFence
impl RefUnwindSafe for CodeFence
impl Send for CodeFence
impl Sync for CodeFence
impl Unpin for CodeFence
impl UnsafeUnpin for CodeFence
impl UnwindSafe for CodeFence
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