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> Freeze for FloatParameter<'a, WRITE, READ>
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