pub enum CharKind {
Value,
Curve,
Map,
ValBlk,
Ascii,
}Expand description
The ASAP2 CHARACTERISTIC type keywords, as the calibration layer consumes them.
Variants§
Value
VALUE — a single scalar.
Curve
CURVE — one-dimensional table.
Map
MAP — two-dimensional table.
ValBlk
VAL_BLK — multi-dimensional value block without axes.
Ascii
ASCII — a string.
Implementations§
Source§impl CharKind
impl CharKind
Sourcepub const fn from_char_type(kind: CharType) -> Self
pub const fn from_char_type(kind: CharType) -> Self
Re-tag an a2l_parse::CharType for the calibration layer.
Sourcepub const fn is_multi_element(self) -> bool
pub const fn is_multi_element(self) -> bool
true when the characteristic is an array of values rather than a
single scalar.
Trait Implementations§
impl Copy for CharKind
impl Eq for CharKind
impl StructuralPartialEq for CharKind
Auto Trait Implementations§
impl Freeze for CharKind
impl RefUnwindSafe for CharKind
impl Send for CharKind
impl Sync for CharKind
impl Unpin for CharKind
impl UnsafeUnpin for CharKind
impl UnwindSafe for CharKind
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