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