Struct libpulse_binding::volume::VolumeLinear
source · pub struct VolumeLinear(pub f64);Expand description
Software volume expressed as linear factor
Tuple Fields
0: f64Implementations
Trait Implementations
sourceimpl Clone for VolumeLinear
impl Clone for VolumeLinear
sourcefn clone(&self) -> VolumeLinear
fn clone(&self) -> VolumeLinear
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for VolumeLinear
impl Debug for VolumeLinear
sourceimpl Default for VolumeLinear
impl Default for VolumeLinear
sourceimpl From<Volume> for VolumeLinear
impl From<Volume> for VolumeLinear
Convert a volume to a linear factor. This is only valid for software volumes!
sourceimpl From<VolumeDB> for VolumeLinear
impl From<VolumeDB> for VolumeLinear
Convert a decibel value (amplitude, not power) to a linear factor. This is only valid for software volumes!
sourceimpl From<VolumeLinear> for Volume
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!
sourcefn from(v: VolumeLinear) -> Self
fn from(v: VolumeLinear) -> Self
Converts to this type from the input type.
sourceimpl From<VolumeLinear> for VolumeDB
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!
sourcefn from(v: VolumeLinear) -> Self
fn from(v: VolumeLinear) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<VolumeLinear> for VolumeLinear
impl PartialEq<VolumeLinear> for VolumeLinear
sourcefn eq(&self, other: &VolumeLinear) -> bool
fn eq(&self, other: &VolumeLinear) -> bool
sourceimpl PartialOrd<VolumeLinear> for VolumeLinear
impl PartialOrd<VolumeLinear> for VolumeLinear
sourcefn partial_cmp(&self, other: &VolumeLinear) -> Option<Ordering>
fn partial_cmp(&self, other: &VolumeLinear) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for VolumeLinear
impl StructuralPartialEq for VolumeLinear
Auto Trait Implementations
impl RefUnwindSafe for VolumeLinear
impl Send for VolumeLinear
impl Sync for VolumeLinear
impl Unpin for VolumeLinear
impl UnwindSafe for VolumeLinear
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more