Struct a2lfile::TypedefCharacteristic
source · pub struct TypedefCharacteristic {Show 19 fields
pub name: String,
pub long_identifier: String,
pub characteristic_type: CharacteristicType,
pub record_layout: String,
pub max_diff: f64,
pub conversion: String,
pub lower_limit: f64,
pub upper_limit: f64,
pub axis_descr: Vec<AxisDescr>,
pub bit_mask: Option<BitMask>,
pub byte_order: Option<ByteOrder>,
pub discrete: Option<Discrete>,
pub encoding: Option<Encoding>,
pub extended_limits: Option<ExtendedLimits>,
pub format: Option<Format>,
pub matrix_dim: Option<MatrixDim>,
pub number: Option<Number>,
pub phys_unit: Option<PhysUnit>,
pub step_size: Option<StepSize>,
/* private fields */
}
Expand description
Type definition of a calibration object
Fields§
§name: String
§long_identifier: String
§characteristic_type: CharacteristicType
§record_layout: String
§max_diff: f64
§conversion: String
§lower_limit: f64
§upper_limit: f64
§axis_descr: Vec<AxisDescr>
§bit_mask: Option<BitMask>
§byte_order: Option<ByteOrder>
§discrete: Option<Discrete>
§encoding: Option<Encoding>
§extended_limits: Option<ExtendedLimits>
§format: Option<Format>
§matrix_dim: Option<MatrixDim>
§number: Option<Number>
§phys_unit: Option<PhysUnit>
§step_size: Option<StepSize>
Implementations§
Trait Implementations§
source§impl A2lObject<(u32, u32, u32, u32, u32, u32, u32, u32)> for TypedefCharacteristic
impl A2lObject<(u32, u32, u32, u32, u32, u32, u32, u32)> for TypedefCharacteristic
source§fn get_layout(&self) -> &BlockInfo<(u32, u32, u32, u32, u32, u32, u32, u32)>
fn get_layout(&self) -> &BlockInfo<(u32, u32, u32, 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, u32, u32, u32)>
fn get_layout_mut( &mut self, ) -> &mut BlockInfo<(u32, u32, u32, 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 Clone for TypedefCharacteristic
impl Clone for TypedefCharacteristic
source§fn clone(&self) -> TypedefCharacteristic
fn clone(&self) -> TypedefCharacteristic
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 TypedefCharacteristic
impl Debug for TypedefCharacteristic
source§impl PartialEq for TypedefCharacteristic
impl PartialEq for TypedefCharacteristic
Auto Trait Implementations§
impl Freeze for TypedefCharacteristic
impl RefUnwindSafe for TypedefCharacteristic
impl Send for TypedefCharacteristic
impl Sync for TypedefCharacteristic
impl Unpin for TypedefCharacteristic
impl UnwindSafe for TypedefCharacteristic
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)