pub struct Selection {
pub start: usize,
pub end: usize,
pub style: Style,
}Expand description
Selection range.
Fields§
§start: usize§end: usize§style: StyleImplementations§
Source§impl Selection
impl Selection
Sourcepub fn normalized(&self) -> Self
pub fn normalized(&self) -> Self
Get normalized (start <= end) selection.
Trait Implementations§
impl Copy for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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