pub enum MouseAction {
Press,
Release,
Motion,
}Expand description
What the mouse did.
Deliberately exhaustive (#843). Press / Release / Motion is what the
mouse protocols justerm models report, closed — and the qualifier matters,
because the unqualified version of this sentence is false. ?1001 hilite
tracking reports something else entirely (ctlseqs.txt, the Hilite Mouse
Tracking entry), and MouseProtocol does not model it — a crate-private type,
as rustdoc confirms by refusing to link it from here. So the closure is scoped
to the protocols that type names, and grows only if it does.
It is left exhaustive on both of #843’s axes anyway: closed as scoped, and inward-only — nothing public hands one of these outward, so the attribute would cost a consumer nothing and buy nothing either.
Variants§
Trait Implementations§
Source§impl Clone for MouseAction
impl Clone for MouseAction
Source§fn clone(&self) -> MouseAction
fn clone(&self) -> MouseAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MouseAction
Source§impl Debug for MouseAction
impl Debug for MouseAction
impl Eq for MouseAction
Source§impl PartialEq for MouseAction
impl PartialEq for MouseAction
impl StructuralPartialEq for MouseAction
Auto Trait Implementations§
impl Freeze for MouseAction
impl RefUnwindSafe for MouseAction
impl Send for MouseAction
impl Sync for MouseAction
impl Unpin for MouseAction
impl UnsafeUnpin for MouseAction
impl UnwindSafe for MouseAction
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