Struct ecu_diagnostics::uds::ScalingData
source · pub struct ScalingData { /* private fields */ }
Expand description
Represents Scaling data structure returned from ECU
Implementations§
source§impl ScalingData
impl ScalingData
sourcepub fn get_scaling_byte(&self) -> &[ScalingExtension]
pub fn get_scaling_byte(&self) -> &[ScalingExtension]
Returns the list of scaling data presentation of the scaling data. Note that there can be more than one! (EG: Having a prefix and postfix scaling byte)
sourcepub fn get_mapping_from_raw(&self) -> Option<f32>
pub fn get_mapping_from_raw(&self) -> Option<f32>
Returns a converted value from raw. If the conversion formula falls under VMS (Vehicle manufacture specific), then None is returned.
Trait Implementations§
source§impl Clone for ScalingData
impl Clone for ScalingData
source§fn clone(&self) -> ScalingData
fn clone(&self) -> ScalingData
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 moreAuto Trait Implementations§
impl Freeze for ScalingData
impl RefUnwindSafe for ScalingData
impl Send for ScalingData
impl Sync for ScalingData
impl Unpin for ScalingData
impl UnwindSafe for ScalingData
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