pub enum ImageColorSpace {
Srgb,
Linear,
}Expand description
Color space metadata for image resources.
This is a portable, contract-level value type used across the runtime/renderer boundary.
Variants§
Implementations§
Source§impl ImageColorSpace
impl ImageColorSpace
pub const fn to_color_info(self) -> ImageColorInfo
Trait Implementations§
Source§impl Clone for ImageColorSpace
impl Clone for ImageColorSpace
Source§fn clone(&self) -> ImageColorSpace
fn clone(&self) -> ImageColorSpace
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 Debug for ImageColorSpace
impl Debug for ImageColorSpace
Source§impl Hash for ImageColorSpace
impl Hash for ImageColorSpace
Source§impl PartialEq for ImageColorSpace
impl PartialEq for ImageColorSpace
impl Copy for ImageColorSpace
impl Eq for ImageColorSpace
impl StructuralPartialEq for ImageColorSpace
Auto Trait Implementations§
impl Freeze for ImageColorSpace
impl RefUnwindSafe for ImageColorSpace
impl Send for ImageColorSpace
impl Sync for ImageColorSpace
impl Unpin for ImageColorSpace
impl UnsafeUnpin for ImageColorSpace
impl UnwindSafe for ImageColorSpace
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