Enum web_sys::ImageBitmapFormat
source · [−]pub enum ImageBitmapFormat {
Show 13 variants
Rgba32,
Bgra32,
Rgb24,
Bgr24,
Gray8,
Yuv444p,
Yuv422p,
Yuv420p,
Yuv420spNv12,
Yuv420spNv21,
Hsv,
Lab,
Depth,
// some variants omitted
}
Expand description
The ImageBitmapFormat
enum.
This API requires the following crate features to be activated: ImageBitmapFormat
Variants
Rgba32
Bgra32
Rgb24
Bgr24
Gray8
Yuv444p
Yuv422p
Yuv420p
Yuv420spNv12
Yuv420spNv21
Hsv
Lab
Depth
Implementations
sourceimpl ImageBitmapFormat
impl ImageBitmapFormat
pub fn from_js_value(obj: &JsValue) -> Option<ImageBitmapFormat>
Trait Implementations
sourceimpl Clone for ImageBitmapFormat
impl Clone for ImageBitmapFormat
sourcefn clone(&self) -> ImageBitmapFormat
fn clone(&self) -> ImageBitmapFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ImageBitmapFormat
impl Debug for ImageBitmapFormat
sourceimpl From<ImageBitmapFormat> for JsValue
impl From<ImageBitmapFormat> for JsValue
sourcefn from(obj: ImageBitmapFormat) -> JsValue
fn from(obj: ImageBitmapFormat) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for ImageBitmapFormat
impl FromWasmAbi for ImageBitmapFormat
sourceimpl IntoWasmAbi for ImageBitmapFormat
impl IntoWasmAbi for ImageBitmapFormat
sourceimpl OptionFromWasmAbi for ImageBitmapFormat
impl OptionFromWasmAbi for ImageBitmapFormat
sourceimpl OptionIntoWasmAbi for ImageBitmapFormat
impl OptionIntoWasmAbi for ImageBitmapFormat
sourceimpl WasmDescribe for ImageBitmapFormat
impl WasmDescribe for ImageBitmapFormat
impl Copy for ImageBitmapFormat
impl Eq for ImageBitmapFormat
impl StructuralEq for ImageBitmapFormat
impl StructuralPartialEq for ImageBitmapFormat
Auto Trait Implementations
impl RefUnwindSafe for ImageBitmapFormat
impl Send for ImageBitmapFormat
impl Sync for ImageBitmapFormat
impl Unpin for ImageBitmapFormat
impl UnwindSafe for ImageBitmapFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn 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
. Read more