Struct rich_sdl2_rust::haptic::effect::Custom
source · pub struct Custom {
pub channels: u8,
pub period: u16,
pub samples: u16,
pub data: Vec<u16>,
}
Expand description
A custom periodic waveform by your sampled data.
Fields§
§channels: u8
The numbers of using axes.
period: u16
The period of your sampled data.
samples: u16
The numbers of the samples in your data.
data: Vec<u16>
The sampled data. Its length must be equal to channels * samples
.
Trait Implementations§
source§impl PartialEq for Custom
impl PartialEq for Custom
impl Eq for Custom
impl StructuralPartialEq for Custom
Auto Trait Implementations§
impl RefUnwindSafe for Custom
impl Send for Custom
impl Sync for Custom
impl Unpin for Custom
impl UnwindSafe for Custom
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