pub struct FileFacts {
pub lang: Lang,
pub hash: String,
pub lines: u32,
pub symbols: Vec<SymbolFact>,
pub imports: Vec<ImportFact>,
pub headings: Vec<String>,
pub mentions: Vec<String>,
pub body: Option<String>,
}Expand description
Everything one file contributes to the graph.
Fields§
§lang: Lang§hash: StringFirst 16 bytes of the BLAKE3 digest, as 32 hex characters.
lines: u32§symbols: Vec<SymbolFact>Sorted by (line_start, name).
imports: Vec<ImportFact>Sorted by (line, raw), deduplicated.
headings: Vec<String>Markdown headings in document order.
mentions: Vec<String>Markdown mention tokens as written. Sorted, deduplicated.
body: Option<String>Markdown body text, at most MAX_BODY_BYTES bytes, cut on a
character boundary. None for every other language.
Trait Implementations§
impl Eq for FileFacts
impl StructuralPartialEq for FileFacts
Auto Trait Implementations§
impl Freeze for FileFacts
impl RefUnwindSafe for FileFacts
impl Send for FileFacts
impl Sync for FileFacts
impl Unpin for FileFacts
impl UnsafeUnpin for FileFacts
impl UnwindSafe for FileFacts
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