pub struct HunkId(pub String);Expand description
Stable identity for a hunk: hash of its normalized content. Survives edits elsewhere in the file; changes when the hunk’s lines change.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for HunkId
impl<'de> Deserialize<'de> for HunkId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HunkId
Source§impl Ord for HunkId
impl Ord for HunkId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for HunkId
impl PartialOrd for HunkId
impl StructuralPartialEq for HunkId
Auto Trait Implementations§
impl Freeze for HunkId
impl RefUnwindSafe for HunkId
impl Send for HunkId
impl Sync for HunkId
impl Unpin for HunkId
impl UnsafeUnpin for HunkId
impl UnwindSafe for HunkId
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