Struct similar::udiff::UnifiedHunkHeader
source · pub struct UnifiedHunkHeader { /* private fields */ }
Expand description
Unified diff hunk header formatter.
Implementations§
source§impl UnifiedHunkHeader
impl UnifiedHunkHeader
sourcepub fn new(ops: &[DiffOp]) -> UnifiedHunkHeader
pub fn new(ops: &[DiffOp]) -> UnifiedHunkHeader
Creates a hunk header from a (non empty) slice of diff ops.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnifiedHunkHeader
impl RefUnwindSafe for UnifiedHunkHeader
impl Send for UnifiedHunkHeader
impl Sync for UnifiedHunkHeader
impl Unpin for UnifiedHunkHeader
impl UnwindSafe for UnifiedHunkHeader
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