Struct similar::udiff::UnifiedHunkHeader
source · pub struct UnifiedHunkHeader { /* private fields */ }
Expand description
Unified diff hunk header formatter.
Implementations
sourceimpl 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 RefUnwindSafe for UnifiedHunkHeader
impl Send for UnifiedHunkHeader
impl Sync for UnifiedHunkHeader
impl Unpin for UnifiedHunkHeader
impl UnwindSafe for UnifiedHunkHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more