pub struct IrCache { /* private fields */ }Implementations§
Source§impl IrCache
impl IrCache
pub fn new(cap: usize) -> Self
pub fn load(&mut self, path: &Path) -> Result<(Vec<f32>, u32), ProjectError>
pub fn remember( &mut self, path: &Path, samples: &[f32], sample_rate: u32, ) -> Result<(), ProjectError>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn retained_bytes(&self) -> usize
pub fn retained_bytes(&self) -> usize
Sample bytes the cache holds; never more than its cap.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IrCache
impl RefUnwindSafe for IrCache
impl Send for IrCache
impl Sync for IrCache
impl Unpin for IrCache
impl UnsafeUnpin for IrCache
impl UnwindSafe for IrCache
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