pub struct Declick<T: Sized + Clone, const MAX_BLOCKSIZE: usize> { /* private fields */ }Implementations§
Source§impl<T, const MAX_BLOCKSIZE: usize> Declick<T, MAX_BLOCKSIZE>
impl<T, const MAX_BLOCKSIZE: usize> Declick<T, MAX_BLOCKSIZE>
pub fn new(initial: T) -> Self
pub fn reset(&mut self, to: T)
pub fn set(&mut self, to: T)
pub fn set_speed(&mut self, sample_rate: SampleRate, seconds: Seconds)
pub fn output(&self) -> DeclickOutput<'_, T, MAX_BLOCKSIZE>
pub fn current_value(&self) -> (&T, SmoothStatus)
pub fn dest(&self) -> &T
pub fn is_active(&self) -> bool
pub fn process(&mut self, frames: usize)
pub fn update_status(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T, const MAX_BLOCKSIZE: usize> Freeze for Declick<T, MAX_BLOCKSIZE>where
T: Freeze,
impl<T, const MAX_BLOCKSIZE: usize> RefUnwindSafe for Declick<T, MAX_BLOCKSIZE>where
T: RefUnwindSafe,
impl<T, const MAX_BLOCKSIZE: usize> Send for Declick<T, MAX_BLOCKSIZE>where
T: Send,
impl<T, const MAX_BLOCKSIZE: usize> Sync for Declick<T, MAX_BLOCKSIZE>where
T: Sync,
impl<T, const MAX_BLOCKSIZE: usize> Unpin for Declick<T, MAX_BLOCKSIZE>where
T: Unpin,
impl<T, const MAX_BLOCKSIZE: usize> UnwindSafe for Declick<T, MAX_BLOCKSIZE>where
T: UnwindSafe,
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