pub struct MergeCompatibilityChecker { /* private fields */ }Expand description
Compatibility checker for merge operations
Implementations§
Source§impl MergeCompatibilityChecker
impl MergeCompatibilityChecker
Sourcepub fn new(existing_path: PathBuf, export_manifest: ExportManifest) -> Self
pub fn new(existing_path: PathBuf, export_manifest: ExportManifest) -> Self
Create compatibility checker
Sourcepub fn is_compatible(&self) -> NativeResult<bool>
pub fn is_compatible(&self) -> NativeResult<bool>
Check if merge is compatible
Sourcepub fn incompatibility_reason(&self) -> NativeResult<String>
pub fn incompatibility_reason(&self) -> NativeResult<String>
Get incompatibility reason if any
Auto Trait Implementations§
impl Freeze for MergeCompatibilityChecker
impl RefUnwindSafe for MergeCompatibilityChecker
impl Send for MergeCompatibilityChecker
impl Sync for MergeCompatibilityChecker
impl Unpin for MergeCompatibilityChecker
impl UnwindSafe for MergeCompatibilityChecker
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more