pub enum CustomButton {
Standard(Button),
Custom(Cow<'static, str>),
}Expand description
A custom mouse button that extends the standard button set
Variants§
Standard(Button)
A standard mouse button
Custom(Cow<'static, str>)
A custom-defined mouse button with a name
Implementations§
Source§impl CustomButton
impl CustomButton
Sourcepub fn custom_static(name: &'static str) -> Self
pub fn custom_static(name: &'static str) -> Self
Create a custom button from a static string
Sourcepub fn custom_string(name: String) -> Self
pub fn custom_string(name: String) -> Self
Create a custom button from a string
Trait Implementations§
Source§impl Clone for CustomButton
impl Clone for CustomButton
Source§fn clone(&self) -> CustomButton
fn clone(&self) -> CustomButton
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 CodeMapper for CustomButton
impl CodeMapper for CustomButton
Source§impl Debug for CustomButton
impl Debug for CustomButton
Source§impl Display for CustomButton
impl Display for CustomButton
Source§impl Hash for CustomButton
impl Hash for CustomButton
Source§impl PartialEq for CustomButton
impl PartialEq for CustomButton
impl Eq for CustomButton
impl StructuralPartialEq for CustomButton
Auto Trait Implementations§
impl Freeze for CustomButton
impl RefUnwindSafe for CustomButton
impl Send for CustomButton
impl Sync for CustomButton
impl Unpin for CustomButton
impl UnwindSafe for CustomButton
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