Struct a2lfile::VarCriterion
source · pub struct VarCriterion {
pub name: String,
pub long_identifier: String,
pub value_list: Vec<String>,
pub var_measurement: Option<VarMeasurement>,
pub var_selection_characteristic: Option<VarSelectionCharacteristic>,
/* private fields */
}
Expand description
describes a variant criterion
Fields§
§name: String
§long_identifier: String
§value_list: Vec<String>
§var_measurement: Option<VarMeasurement>
§var_selection_characteristic: Option<VarSelectionCharacteristic>
Implementations§
Trait Implementations§
source§impl A2lObject<(u32, u32, Vec<u32>)> for VarCriterion
impl A2lObject<(u32, u32, Vec<u32>)> for VarCriterion
source§fn get_layout(&self) -> &BlockInfo<(u32, u32, Vec<u32>)>
fn get_layout(&self) -> &BlockInfo<(u32, u32, Vec<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, Vec<u32>)>
fn get_layout_mut(&mut self) -> &mut BlockInfo<(u32, u32, Vec<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 VarCriterion
impl A2lObjectName for VarCriterion
source§impl Clone for VarCriterion
impl Clone for VarCriterion
source§fn clone(&self) -> VarCriterion
fn clone(&self) -> VarCriterion
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 VarCriterion
impl Debug for VarCriterion
Auto Trait Implementations§
impl Freeze for VarCriterion
impl RefUnwindSafe for VarCriterion
impl Send for VarCriterion
impl Sync for VarCriterion
impl Unpin for VarCriterion
impl UnwindSafe for VarCriterion
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