pub trait PressedState {
// Required method
fn get_pressed_state<P: InputPin>(pin: &mut P) -> bool;
}
Expand description
PressedState
defines the switch behavior on pin raw values
This is internally implemented for PressedOnHigh
and PressedOnLow
to implement different behaviors.
Required Methods§
fn get_pressed_state<P: InputPin>(pin: &mut P) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.