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 VolumeDB
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for VolumeDB
[src]
impl Copy for VolumeDB
impl Clone for VolumeDB
[src]
impl Clone for VolumeDB
fn clone(&self) -> VolumeDB
[src]
fn clone(&self) -> VolumeDB
Returns 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 VolumeDB
fn eq(&self, other: &VolumeDB) -> bool
[src]
fn eq(&self, other: &VolumeDB) -> bool
This 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) -> bool
This method tests for !=
.
impl PartialOrd for VolumeDB
[src]
impl PartialOrd for VolumeDB
fn 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) -> bool
This 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) -> bool
This 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) -> bool
This 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) -> bool
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 Default for VolumeDB
impl From<VolumeDB> for Volume
[src]
impl From<VolumeDB> for Volume
Convert 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 VolumeDB
Convert 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 VolumeDB
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]
fn from(v: VolumeLinear) -> Self
Performs the conversion.
impl From<VolumeDB> for VolumeLinear
[src]
impl From<VolumeDB> for VolumeLinear
Convert a decibel value (amplitude, not power) to a linear factor. This is only valid for software volumes!