pub struct ArithmeticCompositeOperator {
pub k1: f32,
pub k2: f32,
pub k3: f32,
pub k4: f32,
}Expand description
Arithmetic combination with custom coefficients.
Custom linear combination: result = k1srcdst + k2src + k3dst + k4. Allows creating custom compositing operations beyond the standard Porter-Duff set.
Fields§
§k1: f32§k2: f32§k3: f32§k4: f32Trait Implementations§
Source§impl Clone for ArithmeticCompositeOperator
impl Clone for ArithmeticCompositeOperator
Source§fn clone(&self) -> ArithmeticCompositeOperator
fn clone(&self) -> ArithmeticCompositeOperator
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 ArithmeticCompositeOperator
Source§impl Debug for ArithmeticCompositeOperator
impl Debug for ArithmeticCompositeOperator
impl StructuralPartialEq for ArithmeticCompositeOperator
Auto Trait Implementations§
impl Freeze for ArithmeticCompositeOperator
impl RefUnwindSafe for ArithmeticCompositeOperator
impl Send for ArithmeticCompositeOperator
impl Sync for ArithmeticCompositeOperator
impl Unpin for ArithmeticCompositeOperator
impl UnsafeUnpin for ArithmeticCompositeOperator
impl UnwindSafe for ArithmeticCompositeOperator
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