pub struct Entry {
pub kind: String,
pub name: String,
pub start: usize,
pub end: Option<usize>,
pub depth: usize,
}Expand description
One detected declaration.
Fields§
§kind: StringThe source language’s own keyword for the declaration (fn, class,
h2, …) — there is no cross-language kind abstraction.
name: StringThe declared name (for impl, the trait-for-type text; for headings,
the title).
start: usizeExact 1-based line the declaration starts on.
end: Option<usize>Best-effort 1-based inclusive end line; None when the block
heuristic could not derive one.
depth: usize1-based nesting depth (1 = top level).
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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