[−][src]Struct elvis_core::GestureDetector
Gestrue Detector
Implementations
impl<W> GestureDetector<W> where
W: Into<Node>,
[src]
W: Into<Node>,
pub fn new(n: W) -> GestureDetector<W>
[src]
New Gesture Detector
pub fn register(self, gesture: Gesture, callback: fn(_: StateKV)) -> Self
[src]
Register method
pub fn get(&mut self, name: Gesture) -> Option<&Closure<StateKV>>
[src]
Get method
pub fn remove(&mut self, name: Gesture) -> Option<Closure<StateKV>>
[src]
Remove and return method
pub fn list(&self) -> Vec<(&Gesture, &Closure<StateKV>)>
[src]
List methods and closures
Trait Implementations
impl<W: Clone> Clone for GestureDetector<W>
[src]
fn clone(&self) -> GestureDetector<W>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<W> Into<Node> for GestureDetector<W> where
W: Into<Node>,
[src]
W: Into<Node>,
Auto Trait Implementations
impl<W> !RefUnwindSafe for GestureDetector<W>
impl<W> !Send for GestureDetector<W>
impl<W> !Sync for GestureDetector<W>
impl<W> Unpin for GestureDetector<W> where
W: Unpin,
W: Unpin,
impl<W> !UnwindSafe for GestureDetector<W>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,