pub struct Selection<T> {
pub id: usize,
pub start: T,
pub end: T,
pub reversed: bool,
pub goal: SelectionGoal,
}
Fields§
§id: usize
§start: T
§end: T
§reversed: bool
§goal: SelectionGoal
Implementations§
source§impl Selection<Anchor>
impl Selection<Anchor>
pub fn resolve<'a, D: 'a + TextDimension>( &'a self, snapshot: &'a BufferSnapshot ) -> Selection<D>
Trait Implementations§
source§impl<T: PartialEq> PartialEq<Selection<T>> for Selection<T>
impl<T: PartialEq> PartialEq<Selection<T>> for Selection<T>
impl<T> StructuralPartialEq for Selection<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Selection<T>where T: RefUnwindSafe,
impl<T> Send for Selection<T>where T: Send,
impl<T> Sync for Selection<T>where T: Sync,
impl<T> Unpin for Selection<T>where T: Unpin,
impl<T> UnwindSafe for Selection<T>where T: UnwindSafe,
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