pub enum ShadingFunction {
Single(Function),
Multiple(SmallVec<[Function; 4]>),
}Expand description
The function supplied to a shading.
Variants§
Single(Function)
A single function, which should be used to evaluate all components of the shading.
Multiple(SmallVec<[Function; 4]>)
Multiple functions, one for each color component.
Implementations§
Trait Implementations§
Source§impl Clone for ShadingFunction
impl Clone for ShadingFunction
Source§fn clone(&self) -> ShadingFunction
fn clone(&self) -> ShadingFunction
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 moreAuto Trait Implementations§
impl Freeze for ShadingFunction
impl RefUnwindSafe for ShadingFunction
impl Send for ShadingFunction
impl Sync for ShadingFunction
impl Unpin for ShadingFunction
impl UnwindSafe for ShadingFunction
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