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