Struct voicemeeter::interface::parameters::FloatParameter
source · pub struct FloatParameter<'a, const WRITE: bool = true, const READ: bool = true> {
pub name: Cow<'a, ParameterNameRef>,
/* private fields */
}
Available on crate feature
interface
only.Expand description
A float parameter
Fields§
§name: Cow<'a, ParameterNameRef>
The name of the parameter, fully qualified
Implementations§
source§impl<'a, const READ: bool> FloatParameter<'a, true, READ>
impl<'a, const READ: bool> FloatParameter<'a, true, READ>
source§impl<'a, const WRITE: bool> FloatParameter<'a, WRITE, true>
impl<'a, const WRITE: bool> FloatParameter<'a, WRITE, true>
sourcepub fn get(&self) -> Result<f32, GetParameterError>
pub fn get(&self) -> Result<f32, GetParameterError>
Get the value of this parameter
Auto Trait Implementations§
impl<'a, const WRITE: bool, const READ: bool> RefUnwindSafe for FloatParameter<'a, WRITE, READ>
impl<'a, const WRITE: bool, const READ: bool> Send for FloatParameter<'a, WRITE, READ>
impl<'a, const WRITE: bool, const READ: bool> Sync for FloatParameter<'a, WRITE, READ>
impl<'a, const WRITE: bool, const READ: bool> Unpin for FloatParameter<'a, WRITE, READ>
impl<'a, const WRITE: bool, const READ: bool> UnwindSafe for FloatParameter<'a, WRITE, READ>
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