pub struct SubField {
pub name: &'static str,
pub type_name: &'static str,
pub conditions: &'static [(&'static str, &'static str)],
pub components: &'static [Component],
pub scale: Option<f64>,
pub offset: Option<f64>,
pub units: Option<&'static str>,
}Expand description
One alternative interpretation of a parent field.
Fields§
§name: &'static strSnake-case canonical name from Profile.xlsx.
type_name: &'static strType reference for this SubField.
conditions: &'static [(&'static str, &'static str)]Conditions: parallel (ref_field_name, ref_value) pairs. The SubField
applies when any condition matches (i.e. ref-field decoded value
equals one of the listed values, after Profile-level type resolution).
components: &'static [Component]Components to unpack when this SubField is selected (empty for most SubFields).
scale: Option<f64>Scale factor.
offset: Option<f64>Offset.
units: Option<&'static str>Display unit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubField
impl RefUnwindSafe for SubField
impl Send for SubField
impl Sync for SubField
impl Unpin for SubField
impl UnsafeUnpin for SubField
impl UnwindSafe for SubField
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