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