pub enum PixelCopyFormat {
Alpha = 6_406,
Rgb = 6_407,
Rgba = 6_408,
Luminance = 6_409,
LuminanceAlpha = 6_410,
}
Variants§
Trait Implementations§
Source§impl Clone for PixelCopyFormat
impl Clone for PixelCopyFormat
Source§fn clone(&self) -> PixelCopyFormat
fn clone(&self) -> PixelCopyFormat
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 PixelCopyFormat
impl Debug for PixelCopyFormat
Source§impl From<PixelCopyFormat> for JsValue
impl From<PixelCopyFormat> for JsValue
Source§fn from(value: PixelCopyFormat) -> Self
fn from(value: PixelCopyFormat) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for PixelCopyFormat
impl FromWasmAbi for PixelCopyFormat
Source§impl IntoWasmAbi for PixelCopyFormat
impl IntoWasmAbi for PixelCopyFormat
Source§impl OptionFromWasmAbi for PixelCopyFormat
impl OptionFromWasmAbi for PixelCopyFormat
Source§impl OptionIntoWasmAbi for PixelCopyFormat
impl OptionIntoWasmAbi for PixelCopyFormat
Source§impl TryFromJsValue for PixelCopyFormat
impl TryFromJsValue for PixelCopyFormat
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <PixelCopyFormat as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <PixelCopyFormat as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for PixelCopyFormat
impl VectorFromWasmAbi for PixelCopyFormat
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PixelCopyFormat]>
Source§impl VectorIntoJsValue for PixelCopyFormat
impl VectorIntoJsValue for PixelCopyFormat
fn vector_into_jsvalue(vector: Box<[PixelCopyFormat]>) -> JsValue
Source§impl VectorIntoWasmAbi for PixelCopyFormat
impl VectorIntoWasmAbi for PixelCopyFormat
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PixelCopyFormat]>) -> Self::Abi
Source§impl WasmDescribeVector for PixelCopyFormat
impl WasmDescribeVector for PixelCopyFormat
impl Copy for PixelCopyFormat
Auto Trait Implementations§
impl Freeze for PixelCopyFormat
impl RefUnwindSafe for PixelCopyFormat
impl Send for PixelCopyFormat
impl Sync for PixelCopyFormat
impl Unpin for PixelCopyFormat
impl UnwindSafe for PixelCopyFormat
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
.