Enum ambient_ui::clickarea::MouseInput
source · pub enum MouseInput {
Pressed,
Released,
}
Expand description
The state of a mouse button.
Variants§
Trait Implementations§
source§impl Clone for MouseInput
impl Clone for MouseInput
source§fn clone(&self) -> MouseInput
fn clone(&self) -> MouseInput
Returns a copy of the value. Read more
1.0.0 · 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 MouseInput
impl Debug for MouseInput
source§impl From<bool> for MouseInput
impl From<bool> for MouseInput
source§impl PartialEq for MouseInput
impl PartialEq for MouseInput
source§fn eq(&self, other: &MouseInput) -> bool
fn eq(&self, other: &MouseInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MouseInput
impl Eq for MouseInput
impl StructuralEq for MouseInput
impl StructuralPartialEq for MouseInput
Auto Trait Implementations§
impl RefUnwindSafe for MouseInput
impl Send for MouseInput
impl Sync for MouseInput
impl Unpin for MouseInput
impl UnwindSafe for MouseInput
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> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.
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.