pub struct DisplaySlice<'a> { /* private fields */ }Expand description
Borrowed slice over the interleaved (document, virtual)
display rows. Created via CellMatrix::display_slice.
Holds the parameters; the actual interleaving work happens
in Self::iter / DisplaySliceIter. Cheap to
construct.
Implementations§
Source§impl<'a> DisplaySlice<'a>
impl<'a> DisplaySlice<'a>
Sourcepub fn iter(&self) -> DisplaySliceIter<'a> ⓘ
pub fn iter(&self) -> DisplaySliceIter<'a> ⓘ
Iterate height display rows starting at scroll.
When virtual_rows.is_empty() the iterator walks the
underlying CellSliceIter directly without
interleaver overhead.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DisplaySlice<'a>
impl<'a> RefUnwindSafe for DisplaySlice<'a>
impl<'a> Send for DisplaySlice<'a>
impl<'a> Sync for DisplaySlice<'a>
impl<'a> Unpin for DisplaySlice<'a>
impl<'a> UnsafeUnpin for DisplaySlice<'a>
impl<'a> UnwindSafe for DisplaySlice<'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