Struct wasm4_sx::ToneFlagsBuilder
source · pub struct ToneFlagsBuilder { /* private fields */ }
Expand description
Tone flags builder.
Implementations§
source§impl ToneFlagsBuilder
impl ToneFlagsBuilder
sourcepub const fn with_channel(self, channel: Channel) -> Self
pub const fn with_channel(self, channel: Channel) -> Self
Set a channel.
sourcepub const fn with_duty_cycle(self, duty_cycle: DutyCycle) -> Self
pub const fn with_duty_cycle(self, duty_cycle: DutyCycle) -> Self
Set a duty cycle value.
sourcepub const fn with_panning(self, panning: Panning) -> Self
pub const fn with_panning(self, panning: Panning) -> Self
Set panning.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ToneFlagsBuilder
impl Send for ToneFlagsBuilder
impl Sync for ToneFlagsBuilder
impl Unpin for ToneFlagsBuilder
impl UnwindSafe for ToneFlagsBuilder
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