pub struct SymbolFact {
pub name: String,
pub kind: &'static str,
pub line_start: u32,
pub line_end: u32,
pub signature: String,
pub doc: String,
pub calls: Vec<CallFact>,
}Expand description
One definition found in a file.
Fields§
§name: StringQualified within the file: Type.method, mod::fn, Receiver.method.
kind: &'static strOne of function, method, class, struct, enum, trait,
interface, type, const, module.
line_start: u321-based first line of the definition.
line_end: u321-based last line of the definition.
signature: StringThe declaration line, whitespace-collapsed, at most
MAX_TEXT_CHARS characters.
doc: StringThe first line of the doc comment, at most MAX_TEXT_CHARS
characters. Empty when the definition is undocumented.
calls: Vec<CallFact>One entry per call site. Sorted, deduplicated, at most MAX_CALLS
entries.
Trait Implementations§
Source§impl Clone for SymbolFact
impl Clone for SymbolFact
Source§impl Debug for SymbolFact
impl Debug for SymbolFact
impl Eq for SymbolFact
Source§impl Ord for SymbolFact
impl Ord for SymbolFact
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SymbolFact
impl PartialEq for SymbolFact
Source§impl PartialOrd for SymbolFact
impl PartialOrd for SymbolFact
impl StructuralPartialEq for SymbolFact
Auto Trait Implementations§
impl Freeze for SymbolFact
impl RefUnwindSafe for SymbolFact
impl Send for SymbolFact
impl Sync for SymbolFact
impl Unpin for SymbolFact
impl UnsafeUnpin for SymbolFact
impl UnwindSafe for SymbolFact
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