pub struct TextSel {
pub anchor: TextPos,
pub caret: TextPos,
}Expand description
a selection: the anchor stays where it began, the caret moves (equal: no selection)
Fields§
§anchor: TextPos§caret: TextPosImplementations§
Trait Implementations§
impl Copy for TextSel
impl Eq for TextSel
impl StructuralPartialEq for TextSel
Auto Trait Implementations§
impl Forget for TextSel
impl Freeze for TextSel
impl RefUnwindSafe for TextSel
impl Send for TextSel
impl Sync for TextSel
impl Unpin for TextSel
impl UnsafeUnpin for TextSel
impl UnwindSafe for TextSel
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