pub enum MouseButtonAction {
Press,
Release,
}
Expand description
Whether a mouse button was pressed or released.
Variantsยง
Trait Implementationsยง
Sourceยงimpl Clone for MouseButtonAction
impl Clone for MouseButtonAction
Sourceยงfn clone(&self) -> MouseButtonAction
fn clone(&self) -> MouseButtonAction
Returns a duplicate 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 MouseButtonAction
impl Debug for MouseButtonAction
Sourceยงimpl PartialEq for MouseButtonAction
impl PartialEq for MouseButtonAction
impl Copy for MouseButtonAction
impl StructuralPartialEq for MouseButtonAction
Auto Trait Implementationsยง
impl Freeze for MouseButtonAction
impl RefUnwindSafe for MouseButtonAction
impl Send for MouseButtonAction
impl Sync for MouseButtonAction
impl Unpin for MouseButtonAction
impl UnwindSafe for MouseButtonAction
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<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Sourceยงunsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.Sourceยงfn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
Sourceยงfn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
Sourceยงfn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Sourceยงfn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.