pub struct RepositoryFileFormalization {
pub path: String,
pub format: String,
pub line_count: usize,
pub byte_count: usize,
pub statements: Vec<Statement>,
pub embedded_grammars: Vec<EmbeddedGrammarFormalization>,
pub meta_language: Option<MetaLanguageFormalization>,
}Expand description
Link-native representation of one repository file prepared for summary.
Fields§
§path: String§format: String§line_count: usize§byte_count: usize§statements: Vec<Statement>§embedded_grammars: Vec<EmbeddedGrammarFormalization>§meta_language: Option<MetaLanguageFormalization>Implementations§
Source§impl RepositoryFileFormalization
impl RepositoryFileFormalization
Sourcepub fn summary(&self, config: &SummarizationConfig) -> String
pub fn summary(&self, config: &SummarizationConfig) -> String
Render a short prose summary of this formalized file using the supplied
SummarizationConfig. Reuses the shared summarize / deformalize
stages for the retained content statements, so the file boundary stays a
thin adapter over the meta-algorithm pipeline rather than a parallel
formatter. Exposed so the recursive resource summarizer in
super::resource can compose file summaries into folder summaries.
Sourcepub fn links_notation(&self) -> String
pub fn links_notation(&self) -> String
Render the formalized file as compact indented Links Notation.
Trait Implementations§
Source§impl Clone for RepositoryFileFormalization
impl Clone for RepositoryFileFormalization
Source§fn clone(&self) -> RepositoryFileFormalization
fn clone(&self) -> RepositoryFileFormalization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RepositoryFileFormalization
impl RefUnwindSafe for RepositoryFileFormalization
impl Send for RepositoryFileFormalization
impl Sync for RepositoryFileFormalization
impl Unpin for RepositoryFileFormalization
impl UnsafeUnpin for RepositoryFileFormalization
impl UnwindSafe for RepositoryFileFormalization
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