pub struct ViewportRow { /* private fields */ }Expand description
One row returned by a viewport read.
Implementations§
Source§impl ViewportRow
impl ViewportRow
Sourcepub fn line_number(&self) -> usize
pub fn line_number(&self) -> usize
Returns the 1-based line number for display.
Sourcepub fn into_slice(self) -> LineSlice
pub fn into_slice(self) -> LineSlice
Consumes the row and returns the line slice.
Trait Implementations§
Source§impl Clone for ViewportRow
impl Clone for ViewportRow
Source§fn clone(&self) -> ViewportRow
fn clone(&self) -> ViewportRow
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 moreSource§impl Debug for ViewportRow
impl Debug for ViewportRow
Source§impl PartialEq for ViewportRow
impl PartialEq for ViewportRow
impl Eq for ViewportRow
impl StructuralPartialEq for ViewportRow
Auto Trait Implementations§
impl Freeze for ViewportRow
impl RefUnwindSafe for ViewportRow
impl Send for ViewportRow
impl Sync for ViewportRow
impl Unpin for ViewportRow
impl UnsafeUnpin for ViewportRow
impl UnwindSafe for ViewportRow
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