Struct playdate_controls::peripherals::Crank
source · pub struct Crank;Expand description
Wrapped Crank API.
Implementations§
source§impl Crank
impl Crank
sourcepub fn docked() -> Option<bool>
pub fn docked() -> Option<bool>
Wrapped isCrankDocked.
sourcepub fn angle() -> Option<c_float>
pub fn angle() -> Option<c_float>
Wrapped getCrankAngle.
sourcepub fn change() -> Option<c_float>
pub fn change() -> Option<c_float>
Wrapped getCrankChange.
sourcepub fn disable_sounds(disable: bool) -> Option<bool>
pub fn disable_sounds(disable: bool) -> Option<bool>
Wrapped setCrankSoundsDisabled.
- Returns the previous value for this setting.
Auto Trait Implementations§
impl RefUnwindSafe for Crank
impl Send for Crank
impl Sync for Crank
impl Unpin for Crank
impl UnwindSafe for Crank
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere U: From<T>,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes