pub enum ImageFormatInt {
Show 15 variants
Png = 1,
Jpeg = 2,
Gif = 3,
WebP = 4,
Pnm = 5,
Tiff = 6,
Tga = 7,
Dds = 8,
Bmp = 9,
Ico = 10,
Hdr = 11,
OpenExr = 12,
Farbfeld = 13,
Avif = 14,
Qoi = 15,
}Expand description
Provides integer values corresponding to all supported image formats.
Variants§
Png = 1
Jpeg = 2
Gif = 3
WebP = 4
Pnm = 5
Tiff = 6
Tga = 7
Dds = 8
Bmp = 9
Ico = 10
Hdr = 11
OpenExr = 12
Farbfeld = 13
Avif = 14
Qoi = 15
Trait Implementations§
Source§impl Clone for ImageFormatInt
impl Clone for ImageFormatInt
Source§fn clone(&self) -> ImageFormatInt
fn clone(&self) -> ImageFormatInt
Returns a duplicate 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 From<ImageFormat> for ImageFormatInt
impl From<ImageFormat> for ImageFormatInt
Source§fn from(value: ImageFormat) -> Self
fn from(value: ImageFormat) -> Self
Converts to this type from the input type.
Source§impl From<ImageFormatInt> for ImageFormat
impl From<ImageFormatInt> for ImageFormat
Source§fn from(value: ImageFormatInt) -> Self
fn from(value: ImageFormatInt) -> Self
Converts to this type from the input type.
Source§impl From<ImageFormatInt> for JsValue
impl From<ImageFormatInt> for JsValue
Source§fn from(value: ImageFormatInt) -> Self
fn from(value: ImageFormatInt) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ImageFormatInt
impl FromWasmAbi for ImageFormatInt
Source§impl IntoWasmAbi for ImageFormatInt
impl IntoWasmAbi for ImageFormatInt
Source§impl OptionFromWasmAbi for ImageFormatInt
impl OptionFromWasmAbi for ImageFormatInt
Source§impl OptionIntoWasmAbi for ImageFormatInt
impl OptionIntoWasmAbi for ImageFormatInt
Source§impl PartialEq for ImageFormatInt
impl PartialEq for ImageFormatInt
Source§impl TryFromJsValue for ImageFormatInt
impl TryFromJsValue for ImageFormatInt
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <ImageFormatInt as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <ImageFormatInt as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for ImageFormatInt
impl VectorFromWasmAbi for ImageFormatInt
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ImageFormatInt]>
Source§impl VectorIntoJsValue for ImageFormatInt
impl VectorIntoJsValue for ImageFormatInt
fn vector_into_jsvalue(vector: Box<[ImageFormatInt]>) -> JsValue
Source§impl VectorIntoWasmAbi for ImageFormatInt
impl VectorIntoWasmAbi for ImageFormatInt
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ImageFormatInt]>) -> Self::Abi
Source§impl WasmDescribeVector for ImageFormatInt
impl WasmDescribeVector for ImageFormatInt
impl Copy for ImageFormatInt
impl Eq for ImageFormatInt
impl StructuralPartialEq for ImageFormatInt
Auto Trait Implementations§
impl Freeze for ImageFormatInt
impl RefUnwindSafe for ImageFormatInt
impl Send for ImageFormatInt
impl Sync for ImageFormatInt
impl Unpin for ImageFormatInt
impl UnwindSafe for ImageFormatInt
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::AbiSource§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.