Struct tuix::DecibelMap [−]
pub struct DecibelMap { /* fields omitted */ }
Implementations
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 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
Trait Implementations
impl Clone for DecibelMap
impl Clone for DecibelMap
pub fn clone(&self) -> DecibelMap
pub fn clone(&self) -> DecibelMap
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for DecibelMap
impl Debug for DecibelMap
impl NormalizedMap for DecibelMap
impl NormalizedMap for DecibelMap
Auto Trait Implementations
impl RefUnwindSafe for DecibelMap
impl Send for DecibelMap
impl Sync for DecibelMap
impl Unpin for DecibelMap
impl UnwindSafe for DecibelMap
Blanket Implementations
Mutably borrows from an owned value. Read more