pub struct VibePattern<'a>(/* private fields */);Implementations§
Source§impl<'a> VibePattern<'a>
impl<'a> VibePattern<'a>
Sourcepub fn new(durations: &'a [u32]) -> Result<Self, VibePatternError>
pub fn new(durations: &'a [u32]) -> Result<Self, VibePatternError>
§Errors
If durations is empty, contains an element larger than 10_000ms or
its length doesn’t fit 32 bit (but good luck allocating that on a Pebble 😉).
pub fn as_sys(&self) -> sysVibePattern<'a>
Auto Trait Implementations§
impl<'a> Freeze for VibePattern<'a>
impl<'a> RefUnwindSafe for VibePattern<'a>
impl<'a> Send for VibePattern<'a>
impl<'a> Sync for VibePattern<'a>
impl<'a> Unpin for VibePattern<'a>
impl<'a> UnwindSafe for VibePattern<'a>
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