pub struct SourceParseMetadata {
pub path: String,
pub language: Option<String>,
pub parser: ParserKind,
pub symbol_count: usize,
pub relation_count: usize,
}Expand description
File-level parser metadata persisted even when a graph has no symbols.
Fields§
§path: StringRepository-relative file path.
language: Option<String>Detected language or file family.
parser: ParserKindPrimary parser strategy used for the file.
symbol_count: usizeNumber of declaration or manifest symbols emitted for this file.
relation_count: usizeNumber of relations emitted for this file.
Implementations§
Source§impl SourceParseMetadata
impl SourceParseMetadata
Sourcepub fn from_graph(graph: &SymbolGraph) -> Self
pub fn from_graph(graph: &SymbolGraph) -> Self
Build persisted parser metadata from a graph.
Trait Implementations§
Source§impl Clone for SourceParseMetadata
impl Clone for SourceParseMetadata
Source§fn clone(&self) -> SourceParseMetadata
fn clone(&self) -> SourceParseMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceParseMetadata
impl Debug for SourceParseMetadata
Source§impl<'de> Deserialize<'de> for SourceParseMetadata
impl<'de> Deserialize<'de> for SourceParseMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SourceParseMetadata
impl PartialEq for SourceParseMetadata
Source§impl Serialize for SourceParseMetadata
impl Serialize for SourceParseMetadata
impl Eq for SourceParseMetadata
impl StructuralPartialEq for SourceParseMetadata
Auto Trait Implementations§
impl Freeze for SourceParseMetadata
impl RefUnwindSafe for SourceParseMetadata
impl Send for SourceParseMetadata
impl Sync for SourceParseMetadata
impl Unpin for SourceParseMetadata
impl UnwindSafe for SourceParseMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.