pub enum MouseButtonState {
Up,
Down,
}Available on
desktop and crate feature tray-icon only.Expand description
Describes the mouse button state.
Variants§
Trait Implementations§
Source§impl Clone for MouseButtonState
impl Clone for MouseButtonState
Source§fn clone(&self) -> MouseButtonState
fn clone(&self) -> MouseButtonState
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 moreSource§impl Debug for MouseButtonState
impl Debug for MouseButtonState
Source§impl Default for MouseButtonState
impl Default for MouseButtonState
Source§fn default() -> MouseButtonState
fn default() -> MouseButtonState
Returns the “default value” for a type. Read more
Source§impl From<MouseButtonState> for MouseButtonState
impl From<MouseButtonState> for MouseButtonState
Source§fn from(value: MouseButtonState) -> Self
fn from(value: MouseButtonState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MouseButtonState
impl PartialEq for MouseButtonState
Source§fn eq(&self, other: &MouseButtonState) -> bool
fn eq(&self, other: &MouseButtonState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MouseButtonState
impl Serialize for MouseButtonState
impl Copy for MouseButtonState
impl Eq for MouseButtonState
impl StructuralPartialEq for MouseButtonState
Auto Trait Implementations§
impl Freeze for MouseButtonState
impl RefUnwindSafe for MouseButtonState
impl Send for MouseButtonState
impl Sync for MouseButtonState
impl Unpin for MouseButtonState
impl UnsafeUnpin for MouseButtonState
impl UnwindSafe for MouseButtonState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.