use bytemuck::{Pod, Zeroable};
#[derive(Clone, Copy, Debug)]
#[derive(Default, Pod, Zeroable)]
#[repr(C)] pub struct Vibration {
pub left_motor_speed: u16,
pub right_motor_speed: u16,
}
impl From<() > for Vibration { fn from(_: () ) -> Self { Self { left_motor_speed: 0, right_motor_speed: 0 } } }
impl From<(u16, u16)> for Vibration { fn from((l, r): (u16, u16)) -> Self { Self { left_motor_speed: l, right_motor_speed: r } } }
impl From<[u16; 2] > for Vibration { fn from([l, r]: [u16; 2] ) -> Self { Self { left_motor_speed: l, right_motor_speed: r } } }
impl AsRef<Self> for Vibration { fn as_ref(& self) -> & Self { self } }
impl AsMut<Self> for Vibration { fn as_mut(&mut self) -> &mut Self { self } }
#[test] fn test_traits_for_coverage() {
let _vibration = Vibration::default();
let _vibration = Vibration::zeroed();
let _vibration = _vibration.clone();
dbg!(_vibration);
}