pub struct HelpMetadata {
pub links: Vec<HelpLink>,
pub anchors: Vec<HelpAnchor>,
}Expand description
M.3.2.c.5: parsed-out metadata that travels alongside a
freshly-constructed HelpBuffer. Bundles the data the
help-mode owns per-buffer so the App can seed it into
buffer_locals[id] at popup-open time. Replaces the
links / anchors / highlights fields that used to live
directly on HelpBuffer.
Fields§
§links: Vec<HelpLink>[label](url) links extracted by the from_lines parser,
indexed against the cleaned (post-link-strip) text.
anchors: Vec<HelpAnchor>Named anchors – heading slugs auto-generated by
generate_heading_anchors, plus any explicit anchors
supplied by the introspection renderer.
Trait Implementations§
Source§impl Clone for HelpMetadata
impl Clone for HelpMetadata
Source§fn clone(&self) -> HelpMetadata
fn clone(&self) -> HelpMetadata
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 HelpMetadata
impl Debug for HelpMetadata
Source§impl Default for HelpMetadata
impl Default for HelpMetadata
Source§fn default() -> HelpMetadata
fn default() -> HelpMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HelpMetadata
impl RefUnwindSafe for HelpMetadata
impl Send for HelpMetadata
impl Sync for HelpMetadata
impl Unpin for HelpMetadata
impl UnsafeUnpin for HelpMetadata
impl UnwindSafe for HelpMetadata
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more