#[repr(u8)]pub enum ActionStateKind {
None = 0,
JustPressed = 1,
Pressed = 2,
JustReleased = 3,
}Expand description
Art des Aktionszustands.
The state kind of an action.
Variants§
None = 0
Die Aktion wird nicht ausgeführt.
The action is not being performed.
JustPressed = 1
Die Aktion wurde gerade gedrückt.
The action has just been pressed.
Pressed = 2
Die Aktion ist aktuell gedrückt.
The action is currently pressed.
JustReleased = 3
Die Aktion wurde gerade losgelassen.
The action has just been released.
Implementations§
Source§impl ActionStateKind
impl ActionStateKind
Sourcepub fn is_just_pressed(self) -> bool
pub fn is_just_pressed(self) -> bool
Gibt true zurück, wenn die Aktion gerade gedrückt wurde.
Returns true if the action has just been pressed.
Sourcepub fn is_pressed(self) -> bool
pub fn is_pressed(self) -> bool
Gibt true zurück, wenn die Aktion aktuell gedrückt ist.
Returns true if the action is currently pressed.
Sourcepub fn is_just_released(self) -> bool
pub fn is_just_released(self) -> bool
Gibt true zurück, wenn die Aktion gerade losgelassen wurde.
Returns true if the action has just been released.
Sourcepub fn is_released(self) -> bool
pub fn is_released(self) -> bool
Gibt true zurück, wenn die Aktion aktuell nicht gedrückt ist.
Returns true if the action is currently released.
Trait Implementations§
Source§impl Clone for ActionStateKind
impl Clone for ActionStateKind
Source§fn clone(&self) -> ActionStateKind
fn clone(&self) -> ActionStateKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ActionStateKind
Source§impl Debug for ActionStateKind
impl Debug for ActionStateKind
Source§impl<'de> Deserialize<'de> for ActionStateKind
impl<'de> Deserialize<'de> for ActionStateKind
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ActionStateKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ActionStateKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActionStateKind
Source§impl Hash for ActionStateKind
impl Hash for ActionStateKind
Source§impl PartialEq for ActionStateKind
impl PartialEq for ActionStateKind
Source§impl Serialize for ActionStateKind
impl Serialize for ActionStateKind
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 StructuralPartialEq for ActionStateKind
Auto Trait Implementations§
impl Freeze for ActionStateKind
impl RefUnwindSafe for ActionStateKind
impl Send for ActionStateKind
impl Sync for ActionStateKind
impl Unpin for ActionStateKind
impl UnsafeUnpin for ActionStateKind
impl UnwindSafe for ActionStateKind
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