[−][src]Struct libpulse_binding::volume::VolumeLinear
Software volume expressed as linear factor.
Implementations
impl VolumeLinear
[src]
pub fn is_muted(&self) -> bool
[src]
Is a muted volume level.
pub fn is_normal(&self) -> bool
[src]
Is a “normal” volume level.
Trait Implementations
impl Clone for VolumeLinear
[src]
pub fn clone(&self) -> VolumeLinear
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VolumeLinear
[src]
impl Debug for VolumeLinear
[src]
impl Default for VolumeLinear
[src]
impl From<Volume> for VolumeLinear
[src]
Converts a volume to a linear factor.
This is only valid for software volumes!
impl From<VolumeDB> for VolumeLinear
[src]
Converts a decibel value (amplitude, not power) to a linear factor.
This is only valid for software volumes!
impl From<VolumeLinear> for Volume
[src]
Converts a linear factor to a volume.
0.0
and less is muted while 1.0
is Volume::NORMAL
.
This is only valid for software volumes!
pub fn from(v: VolumeLinear) -> Self
[src]
impl From<VolumeLinear> for VolumeDB
[src]
Converts a linear factor to a decibel value (amplitude, not power).
0.0
and less is muted while 1.0
is Volume::NORMAL
.
This is only valid for software volumes!
pub fn from(v: VolumeLinear) -> Self
[src]
impl PartialEq<VolumeLinear> for VolumeLinear
[src]
pub fn eq(&self, other: &VolumeLinear) -> bool
[src]
pub fn ne(&self, other: &VolumeLinear) -> bool
[src]
impl PartialOrd<VolumeLinear> for VolumeLinear
[src]
pub fn partial_cmp(&self, other: &VolumeLinear) -> Option<Ordering>
[src]
pub fn lt(&self, other: &VolumeLinear) -> bool
[src]
pub fn le(&self, other: &VolumeLinear) -> bool
[src]
pub fn gt(&self, other: &VolumeLinear) -> bool
[src]
pub fn ge(&self, other: &VolumeLinear) -> bool
[src]
impl StructuralPartialEq for VolumeLinear
[src]
Auto Trait Implementations
impl RefUnwindSafe for VolumeLinear
[src]
impl Send for VolumeLinear
[src]
impl Sync for VolumeLinear
[src]
impl Unpin for VolumeLinear
[src]
impl UnwindSafe for VolumeLinear
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,