Skip to main content

Characteristic

Struct Characteristic 

Source
pub struct Characteristic {
Show 35 fields 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§

§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§

Source§

impl Characteristic

Source

pub fn new( name: String, long_identifier: String, characteristic_type: CharacteristicType, address: u32, deposit: String, max_diff: f64, conversion: String, lower_limit: f64, upper_limit: f64, ) -> Self

Trait Implementations§

Source§

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)>

get a reference to the BlockInfo that describes the layout of the a2l object
Source§

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 object
Source§

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)

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§

fn get_line(&self) -> u32

get the source line number from which the current a2l object was loaded. Returns 0 if the object was newly created and not loaded from a file
Source§

impl A2lObjectName for Characteristic

Source§

fn get_name(&self) -> &str

get the name of an a2l object. this trait is only implemented for those objects that have names, which is a subset of all objects
Source§

impl A2lObjectNameSetter for Characteristic

Source§

fn set_name(&mut self, name: String)

set the name of an a2l object. this trait is only implemented for those objects that have names, which is a subset of all objects Read more
Source§

impl Clone for Characteristic

Source§

fn clone(&self) -> Characteristic

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Characteristic

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Characteristic

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.