pub struct ContextReport {Show 17 fields
pub target: Target,
pub candidates: Vec<String>,
pub signature: Option<String>,
pub doc: Option<String>,
pub lines: Option<(u32, u32)>,
pub source: Option<String>,
pub file: String,
pub owner: Option<String>,
pub callers: Vec<CallSites>,
pub callers_not_shown: usize,
pub callees: Vec<(String, u32)>,
pub importers: Vec<String>,
pub imports: Vec<String>,
pub partners: Vec<(String, f64)>,
pub recent_commits: Vec<(String, i64, String)>,
pub notes: Vec<(String, String)>,
pub concepts: Vec<(String, String)>,
}Expand description
One file or symbol, from every side the graph can see it.
Fields§
§target: Target§candidates: Vec<String>Symbol keys sharing the bare name that was asked for. Non-empty only when the name was ambiguous, and then nothing else is filled in.
signature: Option<String>§doc: Option<String>§lines: Option<(u32, u32)>(first line, last line) of a symbol, as extraction recorded them.
source: Option<String>At most MAX_SOURCE_LINES lines from the working tree. None when
the caller did not ask for a body (ContextOptions::source), when no
repository path is known, or when the file cannot be read there.
file: StringThe file itself, or the file a symbol is defined in.
owner: Option<String>The file’s top author, by name.
callers: Vec<CallSites>Every call site into the target, grouped by the file the calls sit in,
most call sites first. See CallSites.
callers_not_shown: usizeHow many caller files [MAX_CALLER_FILES] left out of callers.
callees: Vec<(String, u32)>(symbol, the line it is called from), sorted by key.
importers: Vec<String>§imports: Vec<String>§partners: Vec<(String, f64)>(file, co-change score), strongest first.
recent_commits: Vec<(String, i64, String)>(sha, timestamp, subject), newest first.
notes: Vec<(String, String)>(note key, text) for the notes written about it.
concepts: Vec<(String, String)>(concept key, name) for the concepts learned from its file.
Trait Implementations§
Source§impl Clone for ContextReport
impl Clone for ContextReport
Source§fn clone(&self) -> ContextReport
fn clone(&self) -> ContextReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContextReport
impl Debug for ContextReport
Source§impl PartialEq for ContextReport
impl PartialEq for ContextReport
Source§impl Serialize for ContextReport
impl Serialize for ContextReport
impl StructuralPartialEq for ContextReport
Auto Trait Implementations§
impl Freeze for ContextReport
impl RefUnwindSafe for ContextReport
impl Send for ContextReport
impl Sync for ContextReport
impl Unpin for ContextReport
impl UnsafeUnpin for ContextReport
impl UnwindSafe for ContextReport
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.