Enum lotus_script::action::ActionKind
source · #[repr(u8)]pub enum ActionKind {
Pressed = 1,
Released = 2,
}
Expand description
Describes the kind of action that was triggered.
Variants§
Trait Implementations§
source§impl Clone for ActionKind
impl Clone for ActionKind
source§fn clone(&self) -> ActionKind
fn clone(&self) -> ActionKind
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 ActionKind
impl Debug for ActionKind
source§impl<'de> Deserialize<'de> for ActionKind
impl<'de> Deserialize<'de> for ActionKind
source§fn deserialize<D>(
deserializer: D
) -> Result<ActionKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<ActionKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ActionKind
impl Hash for ActionKind
source§impl PartialEq for ActionKind
impl PartialEq for ActionKind
source§fn eq(&self, other: &ActionKind) -> bool
fn eq(&self, other: &ActionKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ActionKind
impl Serialize for ActionKind
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ActionKind
impl StructuralPartialEq for ActionKind
Auto Trait Implementations§
impl Freeze for ActionKind
impl RefUnwindSafe for ActionKind
impl Send for ActionKind
impl Sync for ActionKind
impl Unpin for ActionKind
impl UnwindSafe for ActionKind
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