pub struct TextSelection {
pub anchor: SelectionEdge,
pub focus: SelectionEdge,
}Expand description
A selection across the texts of one container. anchor stays where the
gesture started and focus follows the pointer, so either may come first
in reading order.
Fields§
§anchor: SelectionEdgeWhere the selection started.
focus: SelectionEdgeWhere the selection ends now.
Trait Implementations§
Source§impl Clone for TextSelection
impl Clone for TextSelection
impl Copy for TextSelection
Source§impl Debug for TextSelection
impl Debug for TextSelection
impl Eq for TextSelection
Source§impl PartialEq for TextSelection
impl PartialEq for TextSelection
impl StructuralPartialEq for TextSelection
Auto Trait Implementations§
impl Freeze for TextSelection
impl RefUnwindSafe for TextSelection
impl Send for TextSelection
impl Sync for TextSelection
impl Unpin for TextSelection
impl UnsafeUnpin for TextSelection
impl UnwindSafe for TextSelection
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