pub struct ParsedDirective {
pub name: String,
pub content: Option<String>,
pub attrs: Option<Attrs>,
pub end_pos: usize,
}Expand description
A parsed directive at any level.
Fields§
§name: StringDirective name (e.g., “panel”, “status”, “card”).
content: Option<String>Content inside [...] brackets, if present.
attrs: Option<Attrs>Parsed {key=value} attributes, if present.
end_pos: usizeByte position after the directive (for inline directives only).
Trait Implementations§
Source§impl Clone for ParsedDirective
impl Clone for ParsedDirective
Source§fn clone(&self) -> ParsedDirective
fn clone(&self) -> ParsedDirective
Returns a duplicate of the value. Read more
1.0.0 · 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 ParsedDirective
impl Debug for ParsedDirective
Source§impl PartialEq for ParsedDirective
impl PartialEq for ParsedDirective
impl Eq for ParsedDirective
impl StructuralPartialEq for ParsedDirective
Auto Trait Implementations§
impl Freeze for ParsedDirective
impl RefUnwindSafe for ParsedDirective
impl Send for ParsedDirective
impl Sync for ParsedDirective
impl Unpin for ParsedDirective
impl UnsafeUnpin for ParsedDirective
impl UnwindSafe for ParsedDirective
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.