pub struct AnnotatedStructuredHunk {
pub hunk: StructuredHunk,
pub id: Option<HunkId>,
pub index: Option<usize>,
}Expand description
One structured hunk optionally decorated with a stable HunkId.
Fields§
§hunk: StructuredHunkThe hunk body and line metadata.
id: Option<HunkId>Stable id when assigned (staged/unstaged with peer hunks).
index: Option<usize>0-based index within the file when ids are assigned.
Trait Implementations§
Source§impl Clone for AnnotatedStructuredHunk
impl Clone for AnnotatedStructuredHunk
Source§impl Debug for AnnotatedStructuredHunk
impl Debug for AnnotatedStructuredHunk
impl Eq for AnnotatedStructuredHunk
Source§impl PartialEq for AnnotatedStructuredHunk
impl PartialEq for AnnotatedStructuredHunk
impl StructuralPartialEq for AnnotatedStructuredHunk
Auto Trait Implementations§
impl Forget for AnnotatedStructuredHunk
impl Freeze for AnnotatedStructuredHunk
impl RefUnwindSafe for AnnotatedStructuredHunk
impl Send for AnnotatedStructuredHunk
impl Sync for AnnotatedStructuredHunk
impl Unpin for AnnotatedStructuredHunk
impl UnsafeUnpin for AnnotatedStructuredHunk
impl UnwindSafe for AnnotatedStructuredHunk
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.