struct McpFileSymbolSummary<'a> {
name: &'a str,
kind: &'a str,
line: usize,
end_line: usize,
signature: &'a str,
exported: bool,
documentation: Option<&'a str>,
parent: Option<&'a str>,
called_by: Option<&'a [String]>,
}Expand description
Compact symbol row that omits empty legacy fields.
Fields§
§name: &'a strSymbol name.
kind: &'a strSymbol kind.
line: usizeOne-based start line.
end_line: usizeOne-based end line.
signature: &'a strDeclaration signature.
exported: boolWhether the declaration is externally visible.
documentation: Option<&'a str>Extracted documentation when present.
parent: Option<&'a str>Parent declaration when present.
called_by: Option<&'a [String]>Indexed callers when present.
Trait Implementations§
Source§impl<'a> Debug for McpFileSymbolSummary<'a>
impl<'a> Debug for McpFileSymbolSummary<'a>
Source§impl<'a> From<&'a FileSymbolSummary> for McpFileSymbolSummary<'a>
impl<'a> From<&'a FileSymbolSummary> for McpFileSymbolSummary<'a>
Source§fn from(symbol: &'a FileSymbolSummary) -> Self
fn from(symbol: &'a FileSymbolSummary) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for McpFileSymbolSummary<'a>
impl<'a> RefUnwindSafe for McpFileSymbolSummary<'a>
impl<'a> Send for McpFileSymbolSummary<'a>
impl<'a> Sync for McpFileSymbolSummary<'a>
impl<'a> Unpin for McpFileSymbolSummary<'a>
impl<'a> UnwindSafe for McpFileSymbolSummary<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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