[−][src]Struct lrl_test_compiler::environment::calibration::NumericCalibration
Fields
unit: String
points: Vec<Point>
Implementations
impl NumericCalibration
[src]
const MAXIMUM_POINTS: usize
[src]
pub fn try_new(unit: String, points: Vec<Point>) -> CompilerResult<Self>
[src]
Create a lookup table from a series of points
pub fn read_from_file(file: &mut File) -> CompilerResult<Self>
[src]
pub fn write_to_file(&self, file: &mut File) -> CompilerResult<()>
[src]
Writes the lookup table to a file in a binary encoding.
fn parse_numeric_points<Iter: Iterator<Item = String>>(
lines: Iter
) -> CompilerResult<Vec<Point>>
[src]
lines: Iter
) -> CompilerResult<Vec<Point>>
fn parse_unit(unit_line: String) -> CompilerResult<String>
[src]
fn parse_point(line: &str) -> CompilerResult<Point>
[src]
pub fn lookup(&self, x_val: u16) -> Option<Frac>
[src]
fn interpolate(&self, index: usize, middle_x: u16) -> Option<Frac>
[src]
pub fn inverse_lookup(&self, y_val: Frac) -> Option<u16>
[src]
fn interpolate_inv(&self, index: usize, middle_y: Frac) -> Option<u16>
[src]
Trait Implementations
impl Clone for NumericCalibration
[src]
fn clone(&self) -> NumericCalibration
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NumericCalibration
[src]
impl Eq for NumericCalibration
[src]
impl Hash for NumericCalibration
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<NumericCalibration> for NumericCalibration
[src]
fn eq(&self, other: &NumericCalibration) -> bool
[src]
fn ne(&self, other: &NumericCalibration) -> bool
[src]
impl StructuralEq for NumericCalibration
[src]
impl StructuralPartialEq for NumericCalibration
[src]
Auto Trait Implementations
impl RefUnwindSafe for NumericCalibration
impl Send for NumericCalibration
impl Sync for NumericCalibration
impl Unpin for NumericCalibration
impl UnwindSafe for NumericCalibration
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,