pub enum HunkLine {
Context(String),
Added(String),
Removed(String),
}Expand description
Represents a line in a hunk
Variants§
Implementations§
Source§impl HunkLine
impl HunkLine
Sourcepub const fn is_context(&self) -> bool
pub const fn is_context(&self) -> bool
Returns true if the enum is HunkLine::Context otherwise false
Sourcepub const fn is_added(&self) -> bool
pub const fn is_added(&self) -> bool
Returns true if the enum is HunkLine::Added otherwise false
Sourcepub const fn is_removed(&self) -> bool
pub const fn is_removed(&self) -> bool
Returns true if the enum is HunkLine::Removed otherwise false
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HunkLine
impl RefUnwindSafe for HunkLine
impl Send for HunkLine
impl Sync for HunkLine
impl Unpin for HunkLine
impl UnwindSafe for HunkLine
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