pub struct ContainerDirective {
pub meta: NodeMeta,
pub name: String,
pub label: Vec<Inline>,
pub attributes: Vec<DirectiveAttribute>,
pub children: Vec<Block>,
}Expand description
A container directive. Source: :::name[label]{attrs} … ::: (a directive
feature, not MDX).
Fields§
§meta: NodeMetaNode metadata (source span).
name: StringThe directive name following the :::.
label: Vec<Inline>The optional [label] inline content.
attributes: Vec<DirectiveAttribute>The optional {attrs} attributes.
children: Vec<Block>The directive’s enclosed block content.
Trait Implementations§
Source§impl Clone for ContainerDirective
impl Clone for ContainerDirective
Source§fn clone(&self) -> ContainerDirective
fn clone(&self) -> ContainerDirective
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContainerDirective
impl Debug for ContainerDirective
impl Eq for ContainerDirective
Source§impl From<ContainerDirective> for Block
impl From<ContainerDirective> for Block
Source§fn from(node: ContainerDirective) -> Self
fn from(node: ContainerDirective) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContainerDirective
impl PartialEq for ContainerDirective
Source§fn eq(&self, other: &ContainerDirective) -> bool
fn eq(&self, other: &ContainerDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContainerDirective
Auto Trait Implementations§
impl Freeze for ContainerDirective
impl RefUnwindSafe for ContainerDirective
impl Send for ContainerDirective
impl Sync for ContainerDirective
impl Unpin for ContainerDirective
impl UnsafeUnpin for ContainerDirective
impl UnwindSafe for ContainerDirective
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