Skip to main content

PatchRepository

Trait PatchRepository 

Source
pub trait PatchRepository {
    // Required methods
    fn to_patch(
        &self,
        tree: Option<Tree<'_>>,
        max_token_count: usize,
        model: Model,
    ) -> Result<String>;
    fn to_diff(&self, tree: Option<Tree<'_>>) -> Result<Diff<'_>>;
    fn to_commit_diff(&self, tree: Option<Tree<'_>>) -> Result<Diff<'_>>;
    fn configure_diff_options(&self, opts: &mut DiffOptions);
    fn configure_commit_diff_options(&self, opts: &mut DiffOptions);
}

Required Methods§

Source

fn to_patch( &self, tree: Option<Tree<'_>>, max_token_count: usize, model: Model, ) -> Result<String>

Source

fn to_diff(&self, tree: Option<Tree<'_>>) -> Result<Diff<'_>>

Source

fn to_commit_diff(&self, tree: Option<Tree<'_>>) -> Result<Diff<'_>>

Source

fn configure_diff_options(&self, opts: &mut DiffOptions)

Source

fn configure_commit_diff_options(&self, opts: &mut DiffOptions)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PatchRepository for Repository

Source§

fn to_patch( &self, tree: Option<Tree<'_>>, max_token_count: usize, model: Model, ) -> Result<String>

Source§

fn to_diff(&self, tree: Option<Tree<'_>>) -> Result<Diff<'_>>

Source§

fn to_commit_diff(&self, tree: Option<Tree<'_>>) -> Result<Diff<'_>>

Source§

fn configure_diff_options(&self, opts: &mut DiffOptions)

Source§

fn configure_commit_diff_options(&self, opts: &mut DiffOptions)

Implementors§