Struct a2lfile::Characteristic
source · pub struct Characteristic {Show 36 fields
pub name: String,
pub long_identifier: String,
pub characteristic_type: CharacteristicType,
pub address: u32,
pub deposit: String,
pub max_diff: f64,
pub conversion: String,
pub lower_limit: f64,
pub upper_limit: f64,
pub annotation: Vec<Annotation>,
pub axis_descr: Vec<AxisDescr>,
pub bit_mask: Option<BitMask>,
pub byte_order: Option<ByteOrder>,
pub calibration_access: Option<CalibrationAccess>,
pub comparison_quantity: Option<ComparisonQuantity>,
pub dependent_characteristic: Option<DependentCharacteristic>,
pub discrete: Option<Discrete>,
pub display_identifier: Option<DisplayIdentifier>,
pub ecu_address_extension: Option<EcuAddressExtension>,
pub encoding: Option<Encoding>,
pub extended_limits: Option<ExtendedLimits>,
pub format: Option<Format>,
pub function_list: Option<FunctionList>,
pub guard_rails: Option<GuardRails>,
pub if_data: Vec<IfData>,
pub map_list: Option<MapList>,
pub matrix_dim: Option<MatrixDim>,
pub max_refresh: Option<MaxRefresh>,
pub model_link: Option<ModelLink>,
pub number: Option<Number>,
pub phys_unit: Option<PhysUnit>,
pub read_only: Option<ReadOnly>,
pub ref_memory_segment: Option<RefMemorySegment>,
pub step_size: Option<StepSize>,
pub symbol_link: Option<SymbolLink>,
pub virtual_characteristic: Option<VirtualCharacteristic>,
/* private fields */
}
Expand description
Specifies all the parameters of an adjustable object
Fields§
§name: String
§long_identifier: String
§characteristic_type: CharacteristicType
§address: u32
§deposit: String
§max_diff: f64
§conversion: String
§lower_limit: f64
§upper_limit: f64
§annotation: Vec<Annotation>
§axis_descr: Vec<AxisDescr>
§bit_mask: Option<BitMask>
§byte_order: Option<ByteOrder>
§calibration_access: Option<CalibrationAccess>
§comparison_quantity: Option<ComparisonQuantity>
§dependent_characteristic: Option<DependentCharacteristic>
§discrete: Option<Discrete>
§display_identifier: Option<DisplayIdentifier>
§ecu_address_extension: Option<EcuAddressExtension>
§encoding: Option<Encoding>
§extended_limits: Option<ExtendedLimits>
§format: Option<Format>
§function_list: Option<FunctionList>
§guard_rails: Option<GuardRails>
§if_data: Vec<IfData>
§map_list: Option<MapList>
§matrix_dim: Option<MatrixDim>
§max_refresh: Option<MaxRefresh>
§model_link: Option<ModelLink>
§number: Option<Number>
§phys_unit: Option<PhysUnit>
§read_only: Option<ReadOnly>
§ref_memory_segment: Option<RefMemorySegment>
§step_size: Option<StepSize>
§symbol_link: Option<SymbolLink>
§virtual_characteristic: Option<VirtualCharacteristic>
Implementations§
Trait Implementations§
source§impl A2lObject<(u32, u32, u32, (u32, bool), u32, u32, u32, u32, u32)> for Characteristic
impl A2lObject<(u32, u32, u32, (u32, bool), u32, u32, u32, u32, u32)> for Characteristic
source§fn get_layout(
&self
) -> &BlockInfo<(u32, u32, u32, (u32, bool), u32, u32, u32, u32, u32)>
fn get_layout( &self ) -> &BlockInfo<(u32, u32, u32, (u32, bool), 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, bool), u32, u32, u32, u32, u32)>
fn get_layout_mut( &mut self ) -> &mut BlockInfo<(u32, u32, u32, (u32, bool), 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 Characteristic
impl A2lObjectName for Characteristic
source§impl Clone for Characteristic
impl Clone for Characteristic
source§fn clone(&self) -> Characteristic
fn clone(&self) -> Characteristic
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 Characteristic
impl Debug for Characteristic
Auto Trait Implementations§
impl Freeze for Characteristic
impl RefUnwindSafe for Characteristic
impl Send for Characteristic
impl Sync for Characteristic
impl Unpin for Characteristic
impl UnwindSafe for Characteristic
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