pub struct Rectangle {
pub start_line: usize,
pub end_line: usize,
pub start_col: VisualCol,
pub end_col: VisualCol,
}Expand description
The rectangle a column selection was made from, kept alongside the set so
rectangular copy/paste and column-keyed sort can use it. start_* is the
anchor corner and end_* the head corner (it may be above or left of the
anchor).
Fields§
§start_line: usize§end_line: usize§start_col: VisualCol§end_col: VisualColImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rectangle
impl<'de> Deserialize<'de> for Rectangle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Rectangle
impl StructuralPartialEq for Rectangle
Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnsafeUnpin for Rectangle
impl UnwindSafe for Rectangle
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