pub enum CompuMethodContent {
Identical,
Linear(CompuMethodLinearContent),
ScaleLinear(Vec<CompuMethodScaleLinearContent>),
Rational(CompuMethodRationalContent),
ScaleRational(Vec<CompuMethodRationalContent>),
TextTable(Vec<CompuMethodTextTableContent>),
BitfieldTextTable(Vec<CompuMethodBitfieldTextTableContent>),
ScaleLinearAndTextTable(Vec<CompuMethodScaleLinearContent>, Vec<CompuMethodTextTableContent>),
ScaleRationalAndTextTable(Vec<CompuMethodRationalContent>, Vec<CompuMethodTextTableContent>),
TabNoInterpretation(Vec<CompuMethodTabNoIntpContent>),
}
Expand description
Content of a CompuMethod
Variants§
Identical
Identical conversion: internal and physical values are the same
Linear(CompuMethodLinearContent)
Linear conversion: y = offset + factor * x / divisor
ScaleLinear(Vec<CompuMethodScaleLinearContent>)
Linear conversion with multiple scales, each with its own limits
Rational(CompuMethodRationalContent)
Rational function conversion: y = (n0 + n1 * x + n2 * x^2 + ...) / (d0 + d1 * x + d2 * x^2 + ...)
ScaleRational(Vec<CompuMethodRationalContent>)
Rational function conversion with multiple scales, each with its own limits
TextTable(Vec<CompuMethodTextTableContent>)
Text table conversion
BitfieldTextTable(Vec<CompuMethodBitfieldTextTableContent>)
Bitfield text table conversion
ScaleLinearAndTextTable(Vec<CompuMethodScaleLinearContent>, Vec<CompuMethodTextTableContent>)
Linear conversion with multiple scales and a text table
ScaleRationalAndTextTable(Vec<CompuMethodRationalContent>, Vec<CompuMethodTextTableContent>)
Rational function conversion with multiple scales and a text table
TabNoInterpretation(Vec<CompuMethodTabNoIntpContent>)
Value table with no interpretation
Trait Implementations§
Source§impl Clone for CompuMethodContent
impl Clone for CompuMethodContent
Source§fn clone(&self) -> CompuMethodContent
fn clone(&self) -> CompuMethodContent
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 CompuMethodContent
impl Debug for CompuMethodContent
Source§impl PartialEq for CompuMethodContent
impl PartialEq for CompuMethodContent
impl StructuralPartialEq for CompuMethodContent
Auto Trait Implementations§
impl Freeze for CompuMethodContent
impl RefUnwindSafe for CompuMethodContent
impl Send for CompuMethodContent
impl Sync for CompuMethodContent
impl Unpin for CompuMethodContent
impl UnwindSafe for CompuMethodContent
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