pub enum VolumeCtrl {
Cubic(f64),
Fixed,
Linear,
Log(f64),
}Variants§
Implementations§
Source§impl VolumeCtrl
impl VolumeCtrl
pub const MAX_VOLUME: u16 = 65_535u16
pub const DEFAULT_DB_RANGE: f64 = 60f64
pub fn from_str_with_range( s: &str, db_range: f64, ) -> Result<Self, <Self as FromStr>::Err>
Trait Implementations§
Source§impl Clone for VolumeCtrl
impl Clone for VolumeCtrl
Source§fn clone(&self) -> VolumeCtrl
fn clone(&self) -> VolumeCtrl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VolumeCtrl
impl Debug for VolumeCtrl
Source§impl Default for VolumeCtrl
impl Default for VolumeCtrl
Source§fn default() -> VolumeCtrl
fn default() -> VolumeCtrl
Returns the “default value” for a type. Read more
Source§impl FromStr for VolumeCtrl
impl FromStr for VolumeCtrl
Source§impl MappedCtrl for VolumeCtrl
impl MappedCtrl for VolumeCtrl
impl Copy for VolumeCtrl
Auto Trait Implementations§
impl Freeze for VolumeCtrl
impl RefUnwindSafe for VolumeCtrl
impl Send for VolumeCtrl
impl Sync for VolumeCtrl
impl Unpin for VolumeCtrl
impl UnwindSafe for VolumeCtrl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more