pub struct Resolver { /* private fields */ }Expand description
The main resolver that combines all strategies.
Implementations§
Source§impl Resolver
impl Resolver
pub fn new(config: ResolverConfig) -> Self
Sourcepub fn resolve_file(
&self,
base: &str,
left: &str,
right: &str,
) -> FileResolverOutput
pub fn resolve_file( &self, base: &str, left: &str, right: &str, ) -> FileResolverOutput
Resolve a three-way merge for complete file contents.
This is the main entry point. It first runs diff3 to identify conflict regions, then applies the resolution pipeline to each conflict.
Sourcepub fn resolve_conflict(
&self,
base: &str,
left: &str,
right: &str,
) -> ResolverOutput
pub fn resolve_conflict( &self, base: &str, left: &str, right: &str, ) -> ResolverOutput
Resolve a single conflict region using the full pipeline.
Auto Trait Implementations§
impl Freeze for Resolver
impl !RefUnwindSafe for Resolver
impl Send for Resolver
impl Sync for Resolver
impl Unpin for Resolver
impl !UnwindSafe for Resolver
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