Struct a2lfile::CompuMethod
source · [−]pub struct CompuMethod {
pub name: String,
pub long_identifier: String,
pub conversion_type: ConversionType,
pub format: String,
pub unit: String,
pub coeffs: Option<Coeffs>,
pub coeffs_linear: Option<CoeffsLinear>,
pub compu_tab_ref: Option<CompuTabRef>,
pub formula: Option<Formula>,
pub ref_unit: Option<RefUnit>,
pub status_string_ref: Option<StatusStringRef>,
/* private fields */
}
Expand description
Specification of a conversion method from internal values to physical values
Fields
name: String
long_identifier: String
conversion_type: ConversionType
format: String
unit: String
coeffs: Option<Coeffs>
coeffs_linear: Option<CoeffsLinear>
compu_tab_ref: Option<CompuTabRef>
formula: Option<Formula>
ref_unit: Option<RefUnit>
status_string_ref: Option<StatusStringRef>
Implementations
sourceimpl CompuMethod
impl CompuMethod
Trait Implementations
sourceimpl A2lObject<(u32, u32, u32, u32, u32)> for CompuMethod
impl A2lObject<(u32, u32, u32, u32, u32)> for CompuMethod
sourcefn get_layout(&self) -> &BlockInfo<(u32, u32, u32, u32, u32)>
fn get_layout(&self) -> &BlockInfo<(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, u32)>
fn get_layout_mut(&mut self) -> &mut BlockInfo<(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 CompuMethod
impl A2lObjectName for CompuMethod
sourceimpl Clone for CompuMethod
impl Clone for CompuMethod
sourcefn clone(&self) -> CompuMethod
fn clone(&self) -> CompuMethod
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 CompuMethod
impl Debug for CompuMethod
Auto Trait Implementations
impl RefUnwindSafe for CompuMethod
impl Send for CompuMethod
impl Sync for CompuMethod
impl Unpin for CompuMethod
impl UnwindSafe for CompuMethod
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