pub struct SampledFunction {
pub domain: Vec<(f64, f64)>,
pub range: Vec<(f64, f64)>,
pub size: Vec<usize>,
pub samples: Vec<u8>,
pub bits_per_sample: u8,
pub order: u8,
}Expand description
Sampled function with interpolation
Fields§
§domain: Vec<(f64, f64)>Domain ranges for input values
range: Vec<(f64, f64)>Range values for output
size: Vec<usize>Size of sample table in each dimension
samples: Vec<u8>Sample data as bytes
bits_per_sample: u8Bits per sample (1, 2, 4, 8, 12, 16, 24, 32)
order: u8Interpolation order (1 = linear, 3 = cubic)
Trait Implementations§
Source§impl Clone for SampledFunction
impl Clone for SampledFunction
Source§fn clone(&self) -> SampledFunction
fn clone(&self) -> SampledFunction
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 moreSource§impl Debug for SampledFunction
impl Debug for SampledFunction
Source§impl PartialEq for SampledFunction
impl PartialEq for SampledFunction
impl StructuralPartialEq for SampledFunction
Auto Trait Implementations§
impl Freeze for SampledFunction
impl RefUnwindSafe for SampledFunction
impl Send for SampledFunction
impl Sync for SampledFunction
impl Unpin for SampledFunction
impl UnwindSafe for SampledFunction
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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