Skip to main content

ToTreeMergeExt

Trait ToTreeMergeExt 

Source
pub trait ToTreeMergeExt {
    // Required method
    async fn to_tree_merge(
        &self,
        store: &Arc<Store>,
        dir: &RepoPath,
    ) -> BackendResult<Option<Merge<Tree>>>;
}
Expand description

Extension method for converting a tree-value merge to a Merge<Tree>.

Required Methods§

Source

async fn to_tree_merge( &self, store: &Arc<Store>, dir: &RepoPath, ) -> BackendResult<Option<Merge<Tree>>>

If every non-None term of a MergedTreeValue is a TreeValue::Tree, this converts it to a Merge<Tree>, with empty trees instead of any None terms. Otherwise, returns None.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§