Struct libpulse_binding::volume::VolumeLinear [−][src]
pub struct VolumeLinear(pub f64);
Software volume expressed as linear factor
Methods
impl VolumeLinear[src]
impl VolumeLinearTrait Implementations
impl Debug for VolumeLinear[src]
impl Debug for VolumeLinearfn 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 VolumeLinear[src]
impl Copy for VolumeLinearimpl Clone for VolumeLinear[src]
impl Clone for VolumeLinearfn clone(&self) -> VolumeLinear[src]
fn clone(&self) -> VolumeLinearReturns 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 VolumeLinearfn eq(&self, other: &VolumeLinear) -> bool[src]
fn eq(&self, other: &VolumeLinear) -> boolThis 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) -> boolThis method tests for !=.
impl PartialOrd for VolumeLinear[src]
impl PartialOrd for VolumeLinearfn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 VolumeLinearimpl From<VolumeLinear> for Volume[src]
impl From<VolumeLinear> for VolumeConvert 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) -> SelfPerforms the conversion.
impl From<Volume> for VolumeLinear[src]
impl From<Volume> for VolumeLinearConvert a volume to a linear factor. 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!
Auto Trait Implementations
impl Send for VolumeLinear
impl Send for VolumeLinearimpl Sync for VolumeLinear
impl Sync for VolumeLinear