pub struct SelectionRange<L = usize> {
pub start: Point<L>,
pub end: Point<L>,
pub is_block: bool,
}
Expand description
Represents a range of selected cells.
Fields§
§start: Point<L>
Start point, top left of the selection.
end: Point<L>
End point, bottom right of the selection.
is_block: bool
Whether this selection is a block selection.
Implementations§
Trait Implementations§
Source§impl<L: Clone> Clone for SelectionRange<L>
impl<L: Clone> Clone for SelectionRange<L>
Source§fn clone(&self) -> SelectionRange<L>
fn clone(&self) -> SelectionRange<L>
Returns a copy 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<L: Debug> Debug for SelectionRange<L>
impl<L: Debug> Debug for SelectionRange<L>
Source§impl<L: PartialEq> PartialEq for SelectionRange<L>
impl<L: PartialEq> PartialEq for SelectionRange<L>
impl<L: Copy> Copy for SelectionRange<L>
impl<L: Eq> Eq for SelectionRange<L>
impl<L> StructuralPartialEq for SelectionRange<L>
Auto Trait Implementations§
impl<L> Freeze for SelectionRange<L>where
L: Freeze,
impl<L> RefUnwindSafe for SelectionRange<L>where
L: RefUnwindSafe,
impl<L> Send for SelectionRange<L>where
L: Send,
impl<L> Sync for SelectionRange<L>where
L: Sync,
impl<L> Unpin for SelectionRange<L>where
L: Unpin,
impl<L> UnwindSafe for SelectionRange<L>where
L: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)