pub enum SelectionMode {
Block,
Linear,
}
Expand description
Defines how cells are selected in the terminal grid.
Variants§
Block
Rectangular selection of cells.
Selects all cells within the rectangle defined by start and end points.
Linear
Linear selection following text flow.
Selects cells from start to end following line wrapping, similar to standard text selection in terminals.
Trait Implementations§
Source§impl Clone for SelectionMode
impl Clone for SelectionMode
Source§fn clone(&self) -> SelectionMode
fn clone(&self) -> SelectionMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SelectionMode
impl Debug for SelectionMode
Source§impl Default for SelectionMode
impl Default for SelectionMode
Source§fn default() -> SelectionMode
fn default() -> SelectionMode
Returns the “default value” for a type. Read more
Source§impl From<SelectionMode> for SelectionMode
impl From<SelectionMode> for SelectionMode
Source§fn from(mode: SelectionMode) -> Self
fn from(mode: SelectionMode) -> Self
Converts to this type from the input type.
Source§impl From<SelectionMode> for SelectionMode
impl From<SelectionMode> for SelectionMode
Source§fn from(mode: RustSelectionMode) -> Self
fn from(mode: RustSelectionMode) -> Self
Converts to this type from the input type.
impl Copy for SelectionMode
Auto Trait Implementations§
impl Freeze for SelectionMode
impl RefUnwindSafe for SelectionMode
impl Send for SelectionMode
impl Sync for SelectionMode
impl Unpin for SelectionMode
impl UnwindSafe for SelectionMode
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