Struct rich_sdl2_rust::haptic::effect::Wave
source · pub struct Wave {
pub kind: WaveKind,
pub period: u16,
pub magnitude: i16,
pub offset: i16,
pub phase: u16,
}
Expand description
A periodic waveform specification.
Fields§
§kind: WaveKind
The kind of the waveform.
period: u16
The period of the waveform.
magnitude: i16
The magnitude by peak-to-peak level of the waveform.
offset: i16
The amplifier offset, mean value of the waveform.
phase: u16
The phase shift in degrees times 100.
Trait Implementations§
source§impl PartialEq for Wave
impl PartialEq for Wave
impl Eq for Wave
impl StructuralPartialEq for Wave
Auto Trait Implementations§
impl RefUnwindSafe for Wave
impl Send for Wave
impl Sync for Wave
impl Unpin for Wave
impl UnwindSafe for Wave
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