#[repr(C)]pub struct SDL_VirtualJoystickSensorDesc {
pub type: SDL_SensorType,
pub rate: c_float,
}Expand description
Fields§
§type: SDL_SensorTypethe type of this sensor
rate: c_floatthe update frequency of this sensor, may be 0.0f
Trait Implementations§
Source§impl Clone for SDL_VirtualJoystickSensorDesc
impl Clone for SDL_VirtualJoystickSensorDesc
Source§fn clone(&self) -> SDL_VirtualJoystickSensorDesc
fn clone(&self) -> SDL_VirtualJoystickSensorDesc
Returns a duplicate 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 Default for SDL_VirtualJoystickSensorDesc
impl Default for SDL_VirtualJoystickSensorDesc
Source§fn default() -> SDL_VirtualJoystickSensorDesc
fn default() -> SDL_VirtualJoystickSensorDesc
Returns the “default value” for a type. Read more
Source§impl PartialEq for SDL_VirtualJoystickSensorDesc
impl PartialEq for SDL_VirtualJoystickSensorDesc
Source§fn eq(&self, other: &SDL_VirtualJoystickSensorDesc) -> bool
fn eq(&self, other: &SDL_VirtualJoystickSensorDesc) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SDL_VirtualJoystickSensorDesc
impl StructuralPartialEq for SDL_VirtualJoystickSensorDesc
Auto Trait Implementations§
impl Freeze for SDL_VirtualJoystickSensorDesc
impl RefUnwindSafe for SDL_VirtualJoystickSensorDesc
impl Send for SDL_VirtualJoystickSensorDesc
impl Sync for SDL_VirtualJoystickSensorDesc
impl Unpin for SDL_VirtualJoystickSensorDesc
impl UnwindSafe for SDL_VirtualJoystickSensorDesc
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