pub struct Selection<P, C: SelectionSet> {
pub selected: C,
pub grab: Option<GrabInfo<P, C::Index>>,
}Fields§
§selected: C§grab: Option<GrabInfo<P, C::Index>>Implementations§
Source§impl<P: Copy, C: SelectionSet> Selection<P, C>
impl<P: Copy, C: SelectionSet> Selection<P, C>
pub fn new(selected: C) -> Self
pub fn press<S: Selector<Position = P>>( &mut self, pos: P, cursor: P, selector: &S, selectable: &S::Selectable, )
pub fn release<S: Selector<Position = P>>( &mut self, pos: P, selector: &S, selectable: &mut S::Selectable, )
pub fn on_moved<S: Selector<Position = P>>(&mut self, cursor: P, selector: &S)
Source§impl<P, S: SelectionSet> Selection<P, S>
impl<P, S: SelectionSet> Selection<P, S>
pub fn iter<'a>(&'a self) -> <&'a S as IntoIterator>::IntoIterwhere
&'a S: IntoIterator,
Trait Implementations§
Source§impl<'a, P, S: SelectionSet> IntoIterator for &'a Selection<P, S>where
&'a S: IntoIterator,
impl<'a, P, S: SelectionSet> IntoIterator for &'a Selection<P, S>where
&'a S: IntoIterator,
Source§impl<P, S: SelectionSet + IntoIterator> IntoIterator for Selection<P, S>
impl<P, S: SelectionSet + IntoIterator> IntoIterator for Selection<P, S>
Auto Trait Implementations§
impl<P, C> Freeze for Selection<P, C>
impl<P, C> RefUnwindSafe for Selection<P, C>
impl<P, C> Send for Selection<P, C>
impl<P, C> Sync for Selection<P, C>
impl<P, C> Unpin for Selection<P, C>
impl<P, C> UnwindSafe for Selection<P, C>
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