pub enum PdfFunction {
Exponential {
domain: Vec<(f64, f64)>,
range: Vec<(f64, f64)>,
c0: Vec<f64>,
c1: Vec<f64>,
n: f64,
},
Stitching {
domain: Vec<(f64, f64)>,
range: Vec<(f64, f64)>,
functions: Vec<PdfFunction>,
bounds: Vec<f64>,
encode: Vec<f64>,
},
PostScript {
domain: Vec<(f64, f64)>,
range: Vec<(f64, f64)>,
ops: Vec<PsOp>,
},
}Expand description
A resolved PDF function that can be evaluated.
Variants§
Exponential
Type 2: Exponential interpolation.
Stitching
Type 3: Stitching of sub-functions.
Fields
§
functions: Vec<PdfFunction>PostScript
Type 4: PostScript calculator.
Implementations§
Trait Implementations§
Source§impl Clone for PdfFunction
impl Clone for PdfFunction
Source§fn clone(&self) -> PdfFunction
fn clone(&self) -> PdfFunction
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 PdfFunction
impl RefUnwindSafe for PdfFunction
impl Send for PdfFunction
impl Sync for PdfFunction
impl Unpin for PdfFunction
impl UnsafeUnpin for PdfFunction
impl UnwindSafe for PdfFunction
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
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