Enum piston_window::ButtonState [−]
pub enum ButtonState {
Press,
Release,
}
Expand description
Stores button state.
Variants
Press
Button was pressed.
Release
Button was released.
Trait Implementations
impl Clone for ButtonState
impl Clone for ButtonState
pub fn clone(&self) -> ButtonState
pub fn clone(&self) -> ButtonState
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for ButtonState
impl Debug for ButtonState
impl<'de> Deserialize<'de> for ButtonState
impl<'de> Deserialize<'de> for ButtonState
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ButtonState, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ButtonState, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Hash for ButtonState
impl Hash for ButtonState
impl Ord for ButtonState
impl Ord for ButtonState
pub fn cmp(&self, other: &ButtonState) -> Ordering
pub fn cmp(&self, other: &ButtonState) -> Ordering
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
impl PartialEq<ButtonState> for ButtonState
impl PartialEq<ButtonState> for ButtonState
impl PartialOrd<ButtonState> for ButtonState
impl PartialOrd<ButtonState> for ButtonState
pub fn partial_cmp(&self, other: &ButtonState) -> Option<Ordering>
pub fn partial_cmp(&self, other: &ButtonState) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl Serialize for ButtonState
impl Serialize for ButtonState
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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 Copy for ButtonState
impl Eq for ButtonState
impl StructuralEq for ButtonState
impl StructuralPartialEq for ButtonState
Auto Trait Implementations
impl RefUnwindSafe for ButtonState
impl Send for ButtonState
impl Sync for ButtonState
impl Unpin for ButtonState
impl UnwindSafe for ButtonState
Blanket Implementations
Mutably borrows from an owned value. Read more