Struct touch_selection::GrabInfo
source · [−]pub struct GrabInfo<P, I> {
pub pos: P,
pub state: GrabState<I>,
pub time: f32,
pub moved: Option<P>,
/* private fields */
}
Fields
pos: P
state: GrabState<I>
time: f32
moved: Option<P>
Implementations
sourceimpl<P: Copy, I: Copy> GrabInfo<P, I>
impl<P: Copy, I: Copy> GrabInfo<P, I>
pub fn hold<S: Selector<Position = P>>(
&mut self,
selector: &S,
selectable: &mut S::Selectable
)where
S::Selectable: Selectable<Index = I>,
Auto Trait Implementations
impl<P, I> RefUnwindSafe for GrabInfo<P, I>where
I: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, I> Send for GrabInfo<P, I>where
I: Send,
P: Send,
impl<P, I> Sync for GrabInfo<P, I>where
I: Sync,
P: Sync,
impl<P, I> Unpin for GrabInfo<P, I>where
I: Unpin,
P: Unpin,
impl<P, I> UnwindSafe for GrabInfo<P, I>where
I: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more