pub struct AudioParamBuilder { /* private fields */ }Expand description
Builder for AudioParam.
Implementations§
Source§impl AudioParamBuilder
impl AudioParamBuilder
pub fn param_id<VALUE: Into<GraphObjectId>>( &mut self, value: VALUE, ) -> &mut Self
pub fn node_id<VALUE: Into<GraphObjectId>>(&mut self, value: VALUE) -> &mut Self
pub fn context_id<VALUE: Into<GraphObjectId>>( &mut self, value: VALUE, ) -> &mut Self
pub fn param_type<VALUE: Into<ParamType>>(&mut self, value: VALUE) -> &mut Self
pub fn rate<VALUE: Into<AutomationRate>>(&mut self, value: VALUE) -> &mut Self
pub fn default_value<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn min_value<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn max_value<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<AudioParam, AudioParamBuilderError>
pub fn build(&self) -> Result<AudioParam, AudioParamBuilderError>
Trait Implementations§
Source§impl Clone for AudioParamBuilder
impl Clone for AudioParamBuilder
Source§fn clone(&self) -> AudioParamBuilder
fn clone(&self) -> AudioParamBuilder
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 moreAuto Trait Implementations§
impl Freeze for AudioParamBuilder
impl RefUnwindSafe for AudioParamBuilder
impl Send for AudioParamBuilder
impl Sync for AudioParamBuilder
impl Unpin for AudioParamBuilder
impl UnsafeUnpin for AudioParamBuilder
impl UnwindSafe for AudioParamBuilder
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