Enum image::error::ImageFormatHint [−][src]
pub enum ImageFormatHint { Exact(ImageFormat), Name(String), PathExtension(PathBuf), Unknown, // some variants omitted }
A best effort representation for image formats.
Variants
Exact(ImageFormat)
The format is known exactly.
Name(String)
The format can be identified by a name.
PathExtension(PathBuf)
A common path extension for the format is known.
The format is not known or could not be determined.
Trait Implementations
impl Clone for ImageFormatHint
[src]
fn clone(&self) -> ImageFormatHint
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ImageFormatHint
[src]
impl Display for ImageFormatHint
[src]
impl From<&'_ Path> for ImageFormatHint
[src]
impl From<ImageFormat> for ImageFormatHint
[src]
fn from(format: ImageFormat) -> Self
[src]
impl From<ImageFormatHint> for UnsupportedError
[src]
fn from(hint: ImageFormatHint) -> Self
[src]
impl Hash for ImageFormatHint
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ImageFormatHint> for ImageFormatHint
[src]
fn eq(&self, other: &ImageFormatHint) -> bool
[src]
fn ne(&self, other: &ImageFormatHint) -> bool
[src]
impl StructuralPartialEq for ImageFormatHint
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageFormatHint
impl Send for ImageFormatHint
impl Sync for ImageFormatHint
impl Unpin for ImageFormatHint
impl UnwindSafe for ImageFormatHint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,