Struct DirectiveView Copy item path Source pub struct DirectiveView {
pub start_row: u32 ,
pub end_row: u32 ,
pub name: String ,
pub label: String ,
pub attrs: Vec <DirectiveAttr >,
}Expand description A leaf directive (::name{…}) — a standalone block with no body, drawn in
DocView::rows as a one-row ⧉ name placeholder. A frontend that knows
the host app’s vocabulary reads this and paints the real thing over the rows
in [start_row, end_row) — a web view for diaryx’s ::embed{src=…}, say —
exactly as a grid-drawing one replaces a TableView ’s picture rows. One
that doesn’t just paints the placeholder, which is already framed by the
directive panel chrome.
Core resolves nothing here and neither does this layer: the vocabulary
belongs to the app. See [leaf_core::DirectiveInfo].
The directive’s type (embed, toc, vis), no leading colons.
Its [label] text, or empty — what the placeholder row shows.
Its {…} attributes in source order. A bare attribute ({public}) has an
empty value, which a consumer reads as a flag.
The low-level type used for passing values of this type over the FFI.
Read more Lower a rust value of the target type, into an FFI value of type Self::FfiType.
Read more Lift a rust value of the target type, from an FFI value of type Self::FfiType.
Read more Write a rust value into a buffer, to send over the FFI in serialized form.
Read more Read a rust value from a buffer, received over the FFI in serialized form.
Read more FFI return type for trait interfaces
Lift a successfully returned value from a trait interface
Lift a foreign returned value from a trait interface
Read more Lift a Rust value for a callback interface method error result
Read more Lift a Rust value for an unexpected callback interface error
Read more Lower this value for scaffolding function return
Read more The type that should be returned by scaffolding functions for this type.
Read more Lower the return value from an scaffolding call
Read more Lower the return value for failed argument lifts
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more Returns the argument unchanged.
Create a new handle for an Arc value
Read more Consume a handle, getting back the initial
Arc<> Read more Get a clone of the
Arc<> using a “borrowed” handle.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.