pub struct LeafDirective {
pub meta: NodeMeta,
pub name: String,
pub label: Vec<Inline>,
pub attributes: Vec<DirectiveAttribute>,
}Expand description
A leaf 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.
Trait Implementations§
Source§impl Clone for LeafDirective
impl Clone for LeafDirective
Source§fn clone(&self) -> LeafDirective
fn clone(&self) -> LeafDirective
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 LeafDirective
impl Debug for LeafDirective
impl Eq for LeafDirective
Source§impl From<LeafDirective> for Block
impl From<LeafDirective> for Block
Source§fn from(node: LeafDirective) -> Self
fn from(node: LeafDirective) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LeafDirective
impl PartialEq for LeafDirective
Source§fn eq(&self, other: &LeafDirective) -> bool
fn eq(&self, other: &LeafDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeafDirective
Auto Trait Implementations§
impl Freeze for LeafDirective
impl RefUnwindSafe for LeafDirective
impl Send for LeafDirective
impl Sync for LeafDirective
impl Unpin for LeafDirective
impl UnsafeUnpin for LeafDirective
impl UnwindSafe for LeafDirective
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