pub enum Function {
Sampled {
domain: Vec<f64>,
range: Vec<f64>,
size: Vec<usize>,
bps: u32,
encode: Vec<f64>,
decode: Vec<f64>,
samples: Vec<u8>,
n_out: usize,
},
Exponential {
domain: Vec<f64>,
c0: Vec<f64>,
c1: Vec<f64>,
n: f64,
},
Stitching {
domain: Vec<f64>,
functions: Vec<Function>,
bounds: Vec<f64>,
encode: Vec<f64>,
},
PostScript {
domain: Vec<f64>,
range: Vec<f64>,
program: Vec<PsOp>,
},
Array(Vec<Function>),
Identity,
}Variants§
Sampled
Fields
Exponential
Stitching
PostScript
Array(Vec<Function>)
Several 1-out functions side by side (a shading’s /Function array).
Identity
The identity, for a /Function that could not be read: outputs are
the inputs, which keeps a broken shading visible rather than absent.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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<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