pub enum DebugPhysicalButton {
LEFT_BTN = 0,
MIDDLE_BTN = 1,
RIGHT_BTN = 2,
}
Variants§
Trait Implementations§
source§impl Clone for DebugPhysicalButton
impl Clone for DebugPhysicalButton
source§fn clone(&self) -> DebugPhysicalButton
fn clone(&self) -> DebugPhysicalButton
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 DebugPhysicalButton
impl Debug for DebugPhysicalButton
source§impl Default for DebugPhysicalButton
impl Default for DebugPhysicalButton
source§impl Enum for DebugPhysicalButton
impl Enum for DebugPhysicalButton
source§const NAME: &'static str = "DebugPhysicalButton"
const NAME: &'static str = "DebugPhysicalButton"
Enum name as specified in
.proto
file. Read moresource§fn from_i32(value: i32) -> Option<DebugPhysicalButton>
fn from_i32(value: i32) -> Option<DebugPhysicalButton>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn from_str(str: &str) -> Option<DebugPhysicalButton>
fn from_str(str: &str) -> Option<DebugPhysicalButton>
Try to create an enum from
&str
value.
Return None
if str is unknown.source§const VALUES: &'static [DebugPhysicalButton] = _
const VALUES: &'static [DebugPhysicalButton] = _
All enum values for enum type.
source§impl EnumFull for DebugPhysicalButton
impl EnumFull for DebugPhysicalButton
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for DebugPhysicalButton
impl Hash for DebugPhysicalButton
source§impl PartialEq for DebugPhysicalButton
impl PartialEq for DebugPhysicalButton
source§fn eq(&self, other: &DebugPhysicalButton) -> bool
fn eq(&self, other: &DebugPhysicalButton) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DebugPhysicalButton
impl Eq for DebugPhysicalButton
impl StructuralPartialEq for DebugPhysicalButton
Auto Trait Implementations§
impl RefUnwindSafe for DebugPhysicalButton
impl Send for DebugPhysicalButton
impl Sync for DebugPhysicalButton
impl Unpin for DebugPhysicalButton
impl UnwindSafe for DebugPhysicalButton
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