pub struct Line<'a> {
line: &'a str,
end: usize,
}Expand description
A single physical line peeked from a ChunkCursor, together with the
offset needed to consume it.
line is the line’s content with the trailing newline (and any preceding
\r) removed — this is what the caller inspects to decide whether to merge.
end is the byte offset, within the originating cursor’s text, of the
start of the following line (i.e. just past the consumed \n). It is only
meaningful when passed back to the same cursor via ChunkCursor::merge.
Fields§
§line: &'a str§end: usizeImplementations§
Trait Implementations§
impl<'a> Copy for Line<'a>
Auto Trait Implementations§
impl<'a> Freeze for Line<'a>
impl<'a> RefUnwindSafe for Line<'a>
impl<'a> Send for Line<'a>
impl<'a> Sync for Line<'a>
impl<'a> Unpin for Line<'a>
impl<'a> UnsafeUnpin for Line<'a>
impl<'a> UnwindSafe for Line<'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