pub struct DiffHunk<'a> { /* private fields */ }Expand description
Structure describing a hunk of a diff.
Implementations§
Trait Implementations§
Source§impl<'a> Binding for DiffHunk<'a>
impl<'a> Binding for DiffHunk<'a>
Source§type Raw = *const git_diff_hunk
type Raw = *const git_diff_hunk
The raw type that allows you to interact with libgit2-sys.
Source§unsafe fn from_raw(raw: *const git_diff_hunk) -> DiffHunk<'a>
unsafe fn from_raw(raw: *const git_diff_hunk) -> DiffHunk<'a>
Build a git2 struct from its Binding::Raw value.
Source§fn raw(&self) -> *const git_diff_hunk
fn raw(&self) -> *const git_diff_hunk
Access the Binding::Raw value for a struct. Read more
Source§unsafe fn from_raw_opt<T>(raw: T) -> Option<Self>
unsafe fn from_raw_opt<T>(raw: T) -> Option<Self>
A null-handling version of Binding::from_raw. Read more
Auto Trait Implementations§
impl<'a> Freeze for DiffHunk<'a>
impl<'a> RefUnwindSafe for DiffHunk<'a>
impl<'a> !Send for DiffHunk<'a>
impl<'a> !Sync for DiffHunk<'a>
impl<'a> Unpin for DiffHunk<'a>
impl<'a> UnsafeUnpin for DiffHunk<'a>
impl<'a> UnwindSafe for DiffHunk<'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