pub struct A2lModule {
pub name: String,
pub characteristics: Vec<Characteristic>,
pub measurements: Vec<Measurement>,
pub record_layouts: Vec<RecordLayout>,
pub compu_methods: Vec<CompuMethod>,
}Expand description
A /begin MODULE block: one ECU’s calibration description.
Fields§
§name: StringMODULE name.
characteristics: Vec<Characteristic>CHARACTERISTIC blocks (calibration parameters: values, curves, maps).
measurements: Vec<Measurement>MEASUREMENT blocks (ECU-internal quantities to measure).
record_layouts: Vec<RecordLayout>RECORD_LAYOUT blocks (memory deposit layouts).
compu_methods: Vec<CompuMethod>COMPU_METHOD blocks (raw ↔ physical conversion definitions).
Implementations§
Source§impl A2lModule
impl A2lModule
Sourcepub fn characteristic_by_name(&self, name: &str) -> Option<&Characteristic>
pub fn characteristic_by_name(&self, name: &str) -> Option<&Characteristic>
The CHARACTERISTIC named name.
Sourcepub fn measurement_by_name(&self, name: &str) -> Option<&Measurement>
pub fn measurement_by_name(&self, name: &str) -> Option<&Measurement>
The MEASUREMENT named name.
Sourcepub fn record_layout_by_name(&self, name: &str) -> Option<&RecordLayout>
pub fn record_layout_by_name(&self, name: &str) -> Option<&RecordLayout>
The RECORD_LAYOUT named name.
Sourcepub fn compu_method_by_name(&self, name: &str) -> Option<&CompuMethod>
pub fn compu_method_by_name(&self, name: &str) -> Option<&CompuMethod>
The COMPU_METHOD named name.
Trait Implementations§
impl StructuralPartialEq for A2lModule
Auto Trait Implementations§
impl Freeze for A2lModule
impl RefUnwindSafe for A2lModule
impl Send for A2lModule
impl Sync for A2lModule
impl Unpin for A2lModule
impl UnsafeUnpin for A2lModule
impl UnwindSafe for A2lModule
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