Struct libpulse_binding::volume::VolumeLinear [−][src]
pub struct VolumeLinear(pub f64);
Software volume expressed as linear factor
Methods
impl VolumeLinear
[src]
impl VolumeLinear
Trait Implementations
impl Debug for VolumeLinear
[src]
impl Debug for VolumeLinear
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 VolumeLinear
[src]
impl Copy for VolumeLinear
impl Clone for VolumeLinear
[src]
impl Clone for VolumeLinear
fn clone(&self) -> VolumeLinear
[src]
fn clone(&self) -> VolumeLinear
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 VolumeLinear
[src]
impl PartialEq for VolumeLinear
fn eq(&self, other: &VolumeLinear) -> bool
[src]
fn eq(&self, other: &VolumeLinear) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &VolumeLinear) -> bool
[src]
fn ne(&self, other: &VolumeLinear) -> bool
This method tests for !=
.
impl PartialOrd for VolumeLinear
[src]
impl PartialOrd for VolumeLinear
fn partial_cmp(&self, other: &VolumeLinear) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &VolumeLinear) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &VolumeLinear) -> bool
[src]
fn lt(&self, other: &VolumeLinear) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &VolumeLinear) -> bool
[src]
fn le(&self, other: &VolumeLinear) -> 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: &VolumeLinear) -> bool
[src]
fn gt(&self, other: &VolumeLinear) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &VolumeLinear) -> bool
[src]
fn ge(&self, other: &VolumeLinear) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Default for VolumeLinear
[src]
impl Default for VolumeLinear
impl From<VolumeLinear> for Volume
[src]
impl From<VolumeLinear> for Volume
Convert a linear factor to a volume.
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<Volume> for VolumeLinear
[src]
impl From<Volume> for VolumeLinear
Convert a volume to a linear factor. 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!
Auto Trait Implementations
impl Send for VolumeLinear
impl Send for VolumeLinear
impl Sync for VolumeLinear
impl Sync for VolumeLinear