pub trait Humanizer: Send + Sync {
// Required methods
fn humanize(
&self,
code: &CodeBlock,
profile: &StyleProfile,
) -> Result<String>;
fn learn_style(&self, repo_path: &PathBuf) -> Result<StyleProfile>;
}Expand description
Trait for code humanizers
Required Methods§
Sourcefn humanize(&self, code: &CodeBlock, profile: &StyleProfile) -> Result<String>
fn humanize(&self, code: &CodeBlock, profile: &StyleProfile) -> Result<String>
Humanize a code block based on a style profile
Sourcefn learn_style(&self, repo_path: &PathBuf) -> Result<StyleProfile>
fn learn_style(&self, repo_path: &PathBuf) -> Result<StyleProfile>
Learn style from a repository