pub enum BufferParameter {
Size = 34_660,
Usage = 34_661,
}
Variants§
Size = 34_660
Passed to getBufferParameter to get a buffer’s size.
Usage = 34_661
Passed to getBufferParameter to get the hint for the buffer passed in when it was created.
Trait Implementations§
Source§impl Clone for BufferParameter
impl Clone for BufferParameter
Source§fn clone(&self) -> BufferParameter
fn clone(&self) -> BufferParameter
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BufferParameter
impl Debug for BufferParameter
Source§impl From<BufferParameter> for JsValue
impl From<BufferParameter> for JsValue
Source§fn from(value: BufferParameter) -> Self
fn from(value: BufferParameter) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for BufferParameter
impl FromWasmAbi for BufferParameter
Source§impl IntoWasmAbi for BufferParameter
impl IntoWasmAbi for BufferParameter
Source§impl OptionFromWasmAbi for BufferParameter
impl OptionFromWasmAbi for BufferParameter
Source§impl OptionIntoWasmAbi for BufferParameter
impl OptionIntoWasmAbi for BufferParameter
Source§impl TryFromJsValue for BufferParameter
impl TryFromJsValue for BufferParameter
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <BufferParameter as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <BufferParameter as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for BufferParameter
impl VectorFromWasmAbi for BufferParameter
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[BufferParameter]>
Source§impl VectorIntoJsValue for BufferParameter
impl VectorIntoJsValue for BufferParameter
fn vector_into_jsvalue(vector: Box<[BufferParameter]>) -> JsValue
Source§impl VectorIntoWasmAbi for BufferParameter
impl VectorIntoWasmAbi for BufferParameter
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BufferParameter]>) -> Self::Abi
Source§impl WasmDescribeVector for BufferParameter
impl WasmDescribeVector for BufferParameter
impl Copy for BufferParameter
Auto Trait Implementations§
impl Freeze for BufferParameter
impl RefUnwindSafe for BufferParameter
impl Send for BufferParameter
impl Sync for BufferParameter
impl Unpin for BufferParameter
impl UnwindSafe for BufferParameter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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
.