pub enum MouseTracking {
Off,
Click,
Drag,
Motion,
}Expand description
Mouse tracking level — DEC 1000 / 1002 / 1003.
An enum and not three flags: the levels are mutually exclusive, so three bools would make “click AND motion tracking simultaneously” constructible, which no terminal can mean.
Variants§
Off
No mouse reporting.
Click
DEC 1000 — press and release only.
Drag
DEC 1002 — press, release, and motion while a button is held.
Motion
DEC 1003 — all motion, button or not.
Implementations§
Trait Implementations§
Source§impl Clone for MouseTracking
impl Clone for MouseTracking
Source§fn clone(&self) -> MouseTracking
fn clone(&self) -> MouseTracking
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 MouseTracking
Source§impl Debug for MouseTracking
impl Debug for MouseTracking
Source§impl Default for MouseTracking
impl Default for MouseTracking
Source§fn default() -> MouseTracking
fn default() -> MouseTracking
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MouseTracking
impl<'de> Deserialize<'de> for MouseTracking
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MouseTracking
Source§impl PartialEq for MouseTracking
impl PartialEq for MouseTracking
Source§impl Serialize for MouseTracking
impl Serialize for MouseTracking
impl StructuralPartialEq for MouseTracking
Auto Trait Implementations§
impl Freeze for MouseTracking
impl RefUnwindSafe for MouseTracking
impl Send for MouseTracking
impl Sync for MouseTracking
impl Unpin for MouseTracking
impl UnsafeUnpin for MouseTracking
impl UnwindSafe for MouseTracking
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