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
sourceimpl 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
sourcefn 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 object
sourcefn 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 object
sourcefn 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
sourcefn 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” Read more
sourceimpl A2lObjectName for Characteristic
impl A2lObjectName for Characteristic
sourceimpl Clone for Characteristic
impl Clone for Characteristic
sourcefn clone(&self) -> Characteristic
fn clone(&self) -> Characteristic
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Characteristic
impl Debug for Characteristic
Auto Trait Implementations
impl RefUnwindSafe for Characteristic
impl Send for Characteristic
impl Sync for Characteristic
impl Unpin for Characteristic
impl UnwindSafe for Characteristic
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more