#[repr(i32)]pub enum ColorProfilePreference {
Cicp = 0,
IccProfile = 1,
}Expand description
Some loaders can provide a CICP and ICC profile at the same time. Which color information should be preferred differs between image formats. This value determines which kind should be preferred.
Variants§
Trait Implementations§
Source§impl Clone for ColorProfilePreference
impl Clone for ColorProfilePreference
Source§fn clone(&self) -> ColorProfilePreference
fn clone(&self) -> ColorProfilePreference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColorProfilePreference
Source§impl Debug for ColorProfilePreference
impl Debug for ColorProfilePreference
Source§impl Default for ColorProfilePreference
impl Default for ColorProfilePreference
Source§fn default() -> ColorProfilePreference
fn default() -> ColorProfilePreference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ColorProfilePreference
impl<'de> Deserialize<'de> for ColorProfilePreference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ColorProfilePreference
Source§impl PartialEq for ColorProfilePreference
impl PartialEq for ColorProfilePreference
Source§impl Serialize for ColorProfilePreference
impl Serialize for ColorProfilePreference
impl StructuralPartialEq for ColorProfilePreference
Auto Trait Implementations§
impl Freeze for ColorProfilePreference
impl RefUnwindSafe for ColorProfilePreference
impl Send for ColorProfilePreference
impl Sync for ColorProfilePreference
impl Unpin for ColorProfilePreference
impl UnsafeUnpin for ColorProfilePreference
impl UnwindSafe for ColorProfilePreference
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.