pub struct SectionChangedLine<'a> {
pub is_selected: bool,
pub line: Cow<'a, str>,
}
Expand description
A changed line inside a Section
.
Fields§
§is_selected: bool
Whether 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 duplicate 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> Freeze for SectionChangedLine<'a>
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