Struct libpulse_binding::volume::VolumeDB
[−]
[src]
pub struct VolumeDB(pub f64);
Software volume expressed in decibels (dBs)
Trait Implementations
impl Debug for VolumeDB[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Copy for VolumeDB[src]
impl Clone for VolumeDB[src]
fn clone(&self) -> VolumeDB[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for VolumeDB[src]
fn eq(&self, __arg_0: &VolumeDB) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &VolumeDB) -> bool[src]
This method tests for !=.
impl PartialOrd for VolumeDB[src]
fn partial_cmp(&self, __arg_0: &VolumeDB) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &VolumeDB) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &VolumeDB) -> bool[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &VolumeDB) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &VolumeDB) -> bool[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Default for VolumeDB[src]
impl From<VolumeDB> for Volume[src]
Convert a decibel value to a volume (amplitude, not power). This is only valid for software volumes!
impl From<Volume> for VolumeDB[src]
Convert a volume to a decibel value (amplitude, not power). This is only valid for software volumes!
impl From<VolumeLinear> for VolumeDB[src]
Convert a linear factor to a decibel value (amplitude, not power).
0.0 and less is muted while 1.0 is VOLUME_NORM.
This is only valid for software volumes!
fn from(v: VolumeLinear) -> Self[src]
Performs the conversion.
impl From<VolumeDB> for VolumeLinear[src]
Convert a decibel value (amplitude, not power) to a linear factor. This is only valid for software volumes!