pub enum WeightMapping {
Identity,
RgbProduct4,
}Variants§
Identity
The first N interpolated channels weight the N slots directly.
RgbProduct4
Four slots: (1-r)(1-g)(1-b), (1-r)(1-g)b, (1-r)g(1-b), (1-r)gb. Their sum is 1-r, not one: red darkens the blend.
Implementations§
Source§impl WeightMapping
impl WeightMapping
Source§impl WeightMapping
impl WeightMapping
Sourcepub fn inputs(self, slots: usize) -> usize
pub fn inputs(self, slots: usize) -> usize
The channels it maps for slots slots: one per slot, or three for WeightMapping::RgbProduct4.
Trait Implementations§
Source§impl Clone for WeightMapping
impl Clone for WeightMapping
impl Copy for WeightMapping
Source§impl Debug for WeightMapping
impl Debug for WeightMapping
impl Eq for WeightMapping
Source§impl PartialEq for WeightMapping
impl PartialEq for WeightMapping
Source§impl Serialize for WeightMapping
impl Serialize for WeightMapping
impl StructuralPartialEq for WeightMapping
Auto Trait Implementations§
impl Forget for WeightMapping
impl Freeze for WeightMapping
impl RefUnwindSafe for WeightMapping
impl Send for WeightMapping
impl Sync for WeightMapping
impl Unpin for WeightMapping
impl UnsafeUnpin for WeightMapping
impl UnwindSafe for WeightMapping
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.