Enum web_sys::BinaryType
source · pub enum BinaryType {
Blob,
Arraybuffer,
// some variants omitted
}
Variants§
Implementations§
source§impl BinaryType
impl BinaryType
pub fn from_js_value(obj: &JsValue) -> Option<BinaryType>
Trait Implementations§
source§impl Clone for BinaryType
impl Clone for BinaryType
source§fn clone(&self) -> BinaryType
fn clone(&self) -> BinaryType
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 BinaryType
impl Debug for BinaryType
source§impl From<BinaryType> for JsValue
impl From<BinaryType> for JsValue
source§fn from(obj: BinaryType) -> JsValue
fn from(obj: BinaryType) -> JsValue
Converts to this type from the input type.
source§impl FromWasmAbi for BinaryType
impl FromWasmAbi for BinaryType
source§impl IntoWasmAbi for BinaryType
impl IntoWasmAbi for BinaryType
source§impl PartialEq<BinaryType> for BinaryType
impl PartialEq<BinaryType> for BinaryType
source§fn eq(&self, other: &BinaryType) -> bool
fn eq(&self, other: &BinaryType) -> bool
impl Copy for BinaryType
impl StructuralPartialEq for BinaryType
Auto Trait Implementations§
impl RefUnwindSafe for BinaryType
impl Send for BinaryType
impl Sync for BinaryType
impl Unpin for BinaryType
impl UnwindSafe for BinaryType
Blanket Implementations§
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, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more