pub struct ContainerDirective<'a> {
pub opening: Span,
pub closing: Option<Span>,
pub children: ArenaVec<'a, Block<'a>>,
pub span: Span,
}Expand description
A container directive:
:::note[label]{.class}
children
:::Fields§
§opening: SpanThe whole opening fence line, kept verbatim. Dialects disagree on its grammar (remark-directive vs markdown-it-container), so it is never normalized.
closing: Option<Span>The closing fence line, if the directive was explicitly closed.
Nesting uses longer fences; as with code fences, the length is not stored
(the : run at opening.start gives it).
children: ArenaVec<'a, Block<'a>>§span: SpanTrait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ContainerDirective<'a>
impl<'a> !Send for ContainerDirective<'a>
impl<'a> !UnwindSafe for ContainerDirective<'a>
impl<'a> Freeze for ContainerDirective<'a>
impl<'a> Sync for ContainerDirective<'a>
impl<'a> Unpin for ContainerDirective<'a>
impl<'a> UnsafeUnpin for ContainerDirective<'a>
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