pub struct MethodExtract {
pub markdown: String,
pub empty: bool,
pub scope: &'static str,
pub anchor_id: String,
}Expand description
A located associated-item anchor plus its rendered markdown.
anchor_id is the id that actually matched, so callers can echo a fragment
that exists on the page instead of the one they guessed.
Fields§
§markdown: StringMarkdown for the member signature plus its docblock.
empty: boolWhether the rendered markdown is blank (always false on success).
scope: &'static strExtraction scope reported on the wire; always "method".
The value means “the markdown came from the member anchor”, never “the
member is a function”. Associated types and constants report it too:
agents have asserted extraction == "method" to reject parent-page
fallback success since 1.2.0, and that fail-closed guarantee holds for
every anchor family.
anchor_id: StringAnchor id that matched, e.g. tymethod.next or associatedtype.Item.
Trait Implementations§
Source§impl Clone for MethodExtract
impl Clone for MethodExtract
Auto Trait Implementations§
impl Freeze for MethodExtract
impl RefUnwindSafe for MethodExtract
impl Send for MethodExtract
impl Sync for MethodExtract
impl Unpin for MethodExtract
impl UnsafeUnpin for MethodExtract
impl UnwindSafe for MethodExtract
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