Enum web_sys::OscillatorType
source · pub enum OscillatorType {
Sine = 0,
Square = 1,
Sawtooth = 2,
Triangle = 3,
Custom = 4,
// some variants omitted
}
Expand description
The OscillatorType
enum.
This API requires the following crate features to be activated: OscillatorType
Variants§
Implementations§
source§impl OscillatorType
impl OscillatorType
pub fn from_js_value(obj: &JsValue) -> Option<OscillatorType>
Trait Implementations§
source§impl Clone for OscillatorType
impl Clone for OscillatorType
source§fn clone(&self) -> OscillatorType
fn clone(&self) -> OscillatorType
Returns a copy 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 moresource§impl Debug for OscillatorType
impl Debug for OscillatorType
source§impl From<OscillatorType> for JsValue
impl From<OscillatorType> for JsValue
source§fn from(obj: OscillatorType) -> JsValue
fn from(obj: OscillatorType) -> JsValue
Converts to this type from the input type.
source§impl FromWasmAbi for OscillatorType
impl FromWasmAbi for OscillatorType
source§impl IntoWasmAbi for OscillatorType
impl IntoWasmAbi for OscillatorType
source§impl OptionFromWasmAbi for OscillatorType
impl OptionFromWasmAbi for OscillatorType
source§impl OptionIntoWasmAbi for OscillatorType
impl OptionIntoWasmAbi for OscillatorType
source§impl PartialEq for OscillatorType
impl PartialEq for OscillatorType
source§fn 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 ==
.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§
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
source§impl<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
source§fn 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
.