#[non_exhaustive]pub struct Hunk {
pub anchors: Vec<String>,
pub lines: Vec<HunkLine>,
pub end_of_file: bool,
}Expand description
One located change of an Update File.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.anchors: Vec<String>The @@ anchor lines that precede the change, outermost first.
lines: Vec<HunkLine>The change’s lines.
end_of_file: boolWhether the change must sit at the end of the file (*** End of File).
Trait Implementations§
impl Eq for Hunk
impl StructuralPartialEq for Hunk
Auto Trait Implementations§
impl Forget for Hunk
impl Freeze for Hunk
impl Move for Hunk
impl RefUnwindSafe for Hunk
impl Send for Hunkwhere
RawVecInner: Send,
impl Sync for Hunkwhere
RawVecInner: Sync,
impl Unpin for Hunk
impl UnsafeUnpin for Hunkwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<HunkLine>: UnsafeUnpin,
impl UnwindSafe for Hunkwhere
RawVecInner: 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