pub struct SelectionSpan {
pub row: usize,
pub left: usize,
pub right: usize,
}Expand description
One highlighted run on a single viewport row: columns left..=right
(both inclusive). selection_range returns one per visible row the selection
touches — the renderer paints these. Off-screen rows are not emitted.
Fields§
§row: usize§left: usize§right: usizeTrait Implementations§
Source§impl Clone for SelectionSpan
impl Clone for SelectionSpan
Source§fn clone(&self) -> SelectionSpan
fn clone(&self) -> SelectionSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelectionSpan
Source§impl Debug for SelectionSpan
impl Debug for SelectionSpan
impl Eq for SelectionSpan
Source§impl PartialEq for SelectionSpan
impl PartialEq for SelectionSpan
impl StructuralPartialEq for SelectionSpan
Auto Trait Implementations§
impl Freeze for SelectionSpan
impl RefUnwindSafe for SelectionSpan
impl Send for SelectionSpan
impl Sync for SelectionSpan
impl Unpin for SelectionSpan
impl UnsafeUnpin for SelectionSpan
impl UnwindSafe for SelectionSpan
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