pub struct DiffHunk<T> {
pub buffer_range: Range<T>,
pub diff_base_byte_range: Range<usize>,
}
Fields§
§buffer_range: Range<T>
§diff_base_byte_range: Range<usize>
Implementations§
Trait Implementations§
source§impl<T: PartialEq> PartialEq<DiffHunk<T>> for DiffHunk<T>
impl<T: PartialEq> PartialEq<DiffHunk<T>> for DiffHunk<T>
impl<T: Eq> Eq for DiffHunk<T>
impl<T> StructuralEq for DiffHunk<T>
impl<T> StructuralPartialEq for DiffHunk<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for DiffHunk<T>where T: RefUnwindSafe,
impl<T> Send for DiffHunk<T>where T: Send,
impl<T> Sync for DiffHunk<T>where T: Sync,
impl<T> Unpin for DiffHunk<T>where T: Unpin,
impl<T> UnwindSafe for DiffHunk<T>where T: UnwindSafe,
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.