Enum web_sys::OscillatorType
source · [−]pub enum OscillatorType {
Sine,
Square,
Sawtooth,
Triangle,
Custom,
// some variants omitted
}
Expand description
The OscillatorType
enum.
This API requires the following crate features to be activated: OscillatorType
Variants
Sine
Square
Sawtooth
Triangle
Custom
Implementations
sourceimpl OscillatorType
impl OscillatorType
pub fn from_js_value(obj: &JsValue) -> Option<OscillatorType>
Trait Implementations
sourceimpl Clone for OscillatorType
impl Clone for OscillatorType
sourcefn clone(&self) -> OscillatorType
fn clone(&self) -> OscillatorType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OscillatorType
impl Debug for OscillatorType
sourceimpl From<OscillatorType> for JsValue
impl From<OscillatorType> for JsValue
sourcefn from(obj: OscillatorType) -> JsValue
fn from(obj: OscillatorType) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for OscillatorType
impl FromWasmAbi for OscillatorType
sourceimpl IntoWasmAbi for OscillatorType
impl IntoWasmAbi for OscillatorType
sourceimpl OptionFromWasmAbi for OscillatorType
impl OptionFromWasmAbi for OscillatorType
sourceimpl OptionIntoWasmAbi for OscillatorType
impl OptionIntoWasmAbi for OscillatorType
sourceimpl PartialEq<OscillatorType> for OscillatorType
impl PartialEq<OscillatorType> for OscillatorType
sourcefn eq(&self, other: &OscillatorType) -> bool
fn eq(&self, other: &OscillatorType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl WasmDescribe for OscillatorType
impl WasmDescribe for OscillatorType
impl Copy for OscillatorType
impl Eq for OscillatorType
impl StructuralEq for OscillatorType
impl StructuralPartialEq for OscillatorType
Auto Trait Implementations
impl RefUnwindSafe for OscillatorType
impl Send for OscillatorType
impl Sync for OscillatorType
impl Unpin for OscillatorType
impl UnwindSafe for OscillatorType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more