pub struct Labels<'a> {
pub ancestor: Option<&'a BStr>,
pub current: Option<&'a BStr>,
pub other: Option<&'a BStr>,
}
Available on crate feature
merge
only.Expand description
The set of labels to annotate conflict markers with.
That way it becomes clearer where the content of conflicts are originating from.
Fields§
§ancestor: Option<&'a BStr>
The label for the common ancestor.
current: Option<&'a BStr>
The label for the current (or our) side.
other: Option<&'a BStr>
The label for the other (or their) side.
Trait Implementations§
impl<'a> Copy for Labels<'a>
impl<'a> Eq for Labels<'a>
impl<'a> StructuralPartialEq for Labels<'a>
Auto Trait Implementations§
impl<'a> Freeze for Labels<'a>
impl<'a> RefUnwindSafe for Labels<'a>
impl<'a> Send for Labels<'a>
impl<'a> Sync for Labels<'a>
impl<'a> Unpin for Labels<'a>
impl<'a> UnwindSafe for Labels<'a>
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