Enum sn0int_std::gfx::ImageFormat
source · pub enum ImageFormat {
Png,
Jpeg,
Gif,
WebP,
Tiff,
Bmp,
Ico,
}
Variants§
Implementations§
source§impl ImageFormat
impl ImageFormat
pub fn mime(&self) -> &str
pub fn try_from(format: &ImageFormat) -> Result<ImageFormat, Error>
Trait Implementations§
source§impl Debug for ImageFormat
impl Debug for ImageFormat
source§impl From<ImageFormat> for ImageFormat
impl From<ImageFormat> for ImageFormat
source§fn from(format: ImageFormat) -> ImageFormat
fn from(format: ImageFormat) -> ImageFormat
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnwindSafe for ImageFormat
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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