pub struct TextDirective<'a> {
pub name: &'a str,
pub attributes: DirectiveAttributes<'a>,
pub children: ArenaVec<'a, Node<'a>>,
pub position: Option<Position<'a>>,
pub data: Option<&'a Data<'a>>,
}Expand description
A text directive, :name[label]{attributes}, its label as its children.
Fields§
§name: &'a str§attributes: DirectiveAttributes<'a>§children: ArenaVec<'a, Node<'a>>§position: Option<Position<'a>>§data: Option<&'a Data<'a>>unist’s data, when the node carries any.
Trait Implementations§
Source§impl<'a> Debug for TextDirective<'a>
impl<'a> Debug for TextDirective<'a>
Source§impl<'a> PartialEq for TextDirective<'a>
impl<'a> PartialEq for TextDirective<'a>
impl<'a> StructuralPartialEq for TextDirective<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TextDirective<'a>
impl<'a> !Send for TextDirective<'a>
impl<'a> !Sync for TextDirective<'a>
impl<'a> !UnwindSafe for TextDirective<'a>
impl<'a> Freeze for TextDirective<'a>
impl<'a> Unpin for TextDirective<'a>
impl<'a> UnsafeUnpin for TextDirective<'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