Struct kolor_64::details::transform::ColorTransform
source · pub struct ColorTransform { /* private fields */ }
Expand description
ColorTransform represents a reference to a function that can apply a TransformFn or its inverse.
Implementations§
source§impl ColorTransform
impl ColorTransform
pub fn new( src_transform: TransformFn, dst_transform: TransformFn ) -> Option<Self>
pub fn apply(&self, color: Vec3, white_point: WhitePoint) -> Vec3
Trait Implementations§
source§impl Clone for ColorTransform
impl Clone for ColorTransform
source§fn clone(&self) -> ColorTransform
fn clone(&self) -> ColorTransform
Returns a copy 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 moreimpl Copy for ColorTransform
Auto Trait Implementations§
impl RefUnwindSafe for ColorTransform
impl Send for ColorTransform
impl Sync for ColorTransform
impl Unpin for ColorTransform
impl UnwindSafe for ColorTransform
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