Struct hexodsp::scope_handle::ScopeHandle
source · [−]pub struct ScopeHandle {
bufs: [Vec<AtomicFloatPair>; 3],
active: [AtomicBool; 3],
offs_gain: [AtomicFloatPair; 3],
threshold: (AtomicBool, AtomicFloat),
}
Fields
bufs: [Vec<AtomicFloatPair>; 3]
active: [AtomicBool; 3]
offs_gain: [AtomicFloatPair; 3]
threshold: (AtomicBool, AtomicFloat)
Implementations
sourceimpl ScopeHandle
impl ScopeHandle
pub fn write_oversampled(&self, buf_idx: usize, idx: usize, copies: usize, v: f32)
pub fn set_offs_gain(&self, buf_idx: usize, offs: f32, gain: f32)
pub fn get_offs_gain(&self, buf_idx: usize) -> (f32, f32)
pub fn set_threshold(&self, thresh: Option<f32>)
pub fn get_threshold(&self) -> Option<f32>
pub fn write(&self, buf_idx: usize, idx: usize, v: (f32, f32))
pub fn read(&self, buf_idx: usize, idx: usize) -> (f32, f32)
pub fn set_active_from_mask(&self, mask: u64)
pub fn is_active(&self, idx: usize) -> bool
pub fn len(&self) -> usize
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ScopeHandle
impl Send for ScopeHandle
impl Sync for ScopeHandle
impl Unpin for ScopeHandle
impl UnwindSafe for ScopeHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more