pub struct ColorSpaceTransformer { /* private fields */ }Expand description
Color space transformer
Implementations§
Source§impl ColorSpaceTransformer
impl ColorSpaceTransformer
Sourcepub fn from_colorspace(self, colorspace: ColorSpace) -> Self
pub fn from_colorspace(self, colorspace: ColorSpace) -> Self
Set source color space
Sourcepub fn to_colorspace(self, colorspace: ColorSpace) -> Self
pub fn to_colorspace(self, colorspace: ColorSpace) -> Self
Set target color space
Sourcepub fn to_grayscale(self) -> Self
pub fn to_grayscale(self) -> Self
Set target as grayscale
Trait Implementations§
Source§impl Clone for ColorSpaceTransformer
impl Clone for ColorSpaceTransformer
Source§fn clone(&self) -> ColorSpaceTransformer
fn clone(&self) -> ColorSpaceTransformer
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 ColorSpaceTransformer
impl Debug for ColorSpaceTransformer
Auto Trait Implementations§
impl Freeze for ColorSpaceTransformer
impl RefUnwindSafe for ColorSpaceTransformer
impl Send for ColorSpaceTransformer
impl Sync for ColorSpaceTransformer
impl Unpin for ColorSpaceTransformer
impl UnwindSafe for ColorSpaceTransformer
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more