Struct Gestures
pub struct Gestures { /* private fields */ }Expand description
Tracks open gestures for one editor, so adapters can reject unbalanced messages and end every gesture when the editor closes.
Implementations§
§impl Gestures
impl Gestures
pub fn new(product: &ResolvedProduct<'_>) -> Self
pub fn apply(&mut self, message: &EditorMessage) -> Result<(), GestureError>
pub fn apply(&mut self, message: &EditorMessage) -> Result<(), GestureError>
Check a parsed message against the open gestures and update them.
commit is rejected while a gesture on the same parameter is open.
pub fn is_open(&self, index: usize) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Gestures
impl RefUnwindSafe for Gestures
impl Send for Gestures
impl Sync for Gestures
impl Unpin for Gestures
impl UnsafeUnpin for Gestures
impl UnwindSafe for Gestures
Blanket Implementations§
impl<T> AutoreleaseSafe for T
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more