Struct a2lfile::CompuMethod
source · pub struct CompuMethod {
pub name: String,
pub long_identifier: String,
pub conversion_type: ConversionType,
pub format: String,
pub unit: String,
pub coeffs: Option<Coeffs>,
pub coeffs_linear: Option<CoeffsLinear>,
pub compu_tab_ref: Option<CompuTabRef>,
pub formula: Option<Formula>,
pub ref_unit: Option<RefUnit>,
pub status_string_ref: Option<StatusStringRef>,
/* private fields */
}
Expand description
Specification of a conversion method from internal values to physical values
Fields§
§name: String
§long_identifier: String
§conversion_type: ConversionType
§format: String
§unit: String
§coeffs: Option<Coeffs>
§coeffs_linear: Option<CoeffsLinear>
§compu_tab_ref: Option<CompuTabRef>
§formula: Option<Formula>
§ref_unit: Option<RefUnit>
§status_string_ref: Option<StatusStringRef>
Implementations§
source§impl CompuMethod
impl CompuMethod
Trait Implementations§
source§impl A2lObject<(u32, u32, u32, u32, u32)> for CompuMethod
impl A2lObject<(u32, u32, u32, u32, u32)> for CompuMethod
source§fn get_layout(&self) -> &BlockInfo<(u32, u32, u32, u32, u32)>
fn get_layout(&self) -> &BlockInfo<(u32, u32, u32, u32, u32)>
get a reference to the
BlockInfo
that describes the layout of the a2l objectsource§fn get_layout_mut(&mut self) -> &mut BlockInfo<(u32, u32, u32, u32, u32)>
fn get_layout_mut(&mut self) -> &mut BlockInfo<(u32, u32, u32, u32, u32)>
get a mutable reference to the
BlockInfo
that describes the layout of the a2l objectsource§fn reset_location(&mut self)
fn reset_location(&mut self)
reset the location information on the a2l object. It will be treated like a new object when writing a file
source§fn merge_includes(&mut self)
fn merge_includes(&mut self)
reset the reference to an include file on this objct and its children.
This causes the object to be written into the output file instead of referenced through /include “filename”
source§impl A2lObjectName for CompuMethod
impl A2lObjectName for CompuMethod
source§impl Clone for CompuMethod
impl Clone for CompuMethod
source§fn clone(&self) -> CompuMethod
fn clone(&self) -> CompuMethod
Returns a copy 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 CompuMethod
impl Debug for CompuMethod
Auto Trait Implementations§
impl Freeze for CompuMethod
impl RefUnwindSafe for CompuMethod
impl Send for CompuMethod
impl Sync for CompuMethod
impl Unpin for CompuMethod
impl UnwindSafe for CompuMethod
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