pub struct MergeFileResult { /* private fields */ }Expand description
Information about file-level merging.
Implementations§
Source§impl MergeFileResult
impl MergeFileResult
Sourcepub fn is_automergeable(&self) -> bool
pub fn is_automergeable(&self) -> bool
True if the output was automerged, false if the output contains conflict markers.
Sourcepub fn path(&self) -> Option<&str>
pub fn path(&self) -> Option<&str>
The path that the resultant merge file should use.
returns None if a filename conflict would occur,
or if the path is not valid utf-8
Sourcepub fn path_bytes(&self) -> Option<&[u8]>
pub fn path_bytes(&self) -> Option<&[u8]>
Gets the path as a byte slice.
Trait Implementations§
Source§impl Debug for MergeFileResult
impl Debug for MergeFileResult
Auto Trait Implementations§
impl Freeze for MergeFileResult
impl RefUnwindSafe for MergeFileResult
impl !Send for MergeFileResult
impl !Sync for MergeFileResult
impl Unpin for MergeFileResult
impl UnwindSafe for MergeFileResult
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