Struct git_record::SectionChangedLine
source · pub struct SectionChangedLine<'a> {
pub is_selected: bool,
pub line: Cow<'a, str>,
}Expand description
A changed line inside a Section.
Fields§
§is_selected: boolWhether or not this line was selected to be recorded.
line: Cow<'a, str>The contents of the line, including its trailing newline character(s), if any.
Implementations§
source§impl<'a> SectionChangedLine<'a>
impl<'a> SectionChangedLine<'a>
sourcepub fn borrow_line(&'a self) -> Self
pub fn borrow_line(&'a self) -> Self
Make a copy of this SectionChangedLine that borrows the content of
the line from the original.
Trait Implementations§
source§impl<'a> Clone for SectionChangedLine<'a>
impl<'a> Clone for SectionChangedLine<'a>
source§fn clone(&self) -> SectionChangedLine<'a>
fn clone(&self) -> SectionChangedLine<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for SectionChangedLine<'a>
impl<'a> Send for SectionChangedLine<'a>
impl<'a> Sync for SectionChangedLine<'a>
impl<'a> Unpin for SectionChangedLine<'a>
impl<'a> UnwindSafe for SectionChangedLine<'a>
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