pub struct DecibelMap { /* private fields */ }Implementations§
Source§impl DecibelMap
impl DecibelMap
pub fn new( min_db: f32, max_db: f32, value_scaling: ValueScaling, display_decimals: DisplayDecimals, display_units: bool, ) -> DecibelMap
pub fn min_db(&self) -> f32
pub fn max_db(&self) -> f32
pub fn value_scaling(&self) -> &ValueScaling
pub fn normalized_to_db(&self, normalized: f32) -> f32
pub fn normalized_to_amplitude(&self, normalized: f32) -> f32
pub fn db_to_normalized(&self, db: f32) -> f32
pub fn amplitude_to_normalized(&self, amplitude: f32) -> f32
pub fn clamp_db(&self, db: f32) -> f32
Trait Implementations§
Source§impl Clone for DecibelMap
impl Clone for DecibelMap
Source§fn clone(&self) -> DecibelMap
fn clone(&self) -> DecibelMap
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecibelMap
impl Debug for DecibelMap
Source§impl NormalizedMap for DecibelMap
impl NormalizedMap for DecibelMap
Auto Trait Implementations§
impl Freeze for DecibelMap
impl RefUnwindSafe for DecibelMap
impl Send for DecibelMap
impl Sync for DecibelMap
impl Unpin for DecibelMap
impl UnwindSafe for DecibelMap
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