pub struct BmsBattboxTempAsReportedByVcu(/* private fields */);Implementations§
Source§impl BmsBattboxTempAsReportedByVcu
impl BmsBattboxTempAsReportedByVcu
Sourcepub const fn temp(&self) -> f32
pub const fn temp(&self) -> f32
BMS Battbox Temp
This value is echoed by VCU from the BMS’s cell temps message.
Units: C
Bits: 0..32
Sourcepub const fn with_temp_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_temp_checked(self, value: f32) -> Result<Self, ()>
BMS Battbox Temp
This value is echoed by VCU from the BMS’s cell temps message.
Units: C
Bits: 0..32
Sourcepub const fn with_temp(self, value: f32) -> Self
pub const fn with_temp(self, value: f32) -> Self
BMS Battbox Temp
This value is echoed by VCU from the BMS’s cell temps message.
Units: C
Bits: 0..32
Source§impl BmsBattboxTempAsReportedByVcu
impl BmsBattboxTempAsReportedByVcu
Sourcepub fn try_with_temp(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_temp(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_temp but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_temp(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_temp(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_temp but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for BmsBattboxTempAsReportedByVcu
impl Clone for BmsBattboxTempAsReportedByVcu
Source§fn clone(&self) -> BmsBattboxTempAsReportedByVcu
fn clone(&self) -> BmsBattboxTempAsReportedByVcu
Returns a duplicate 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 From<BmsBattboxTempAsReportedByVcu> for u32
impl From<BmsBattboxTempAsReportedByVcu> for u32
Source§fn from(v: BmsBattboxTempAsReportedByVcu) -> Self
fn from(v: BmsBattboxTempAsReportedByVcu) -> Self
Converts to this type from the input type.
Source§impl From<u32> for BmsBattboxTempAsReportedByVcu
impl From<u32> for BmsBattboxTempAsReportedByVcu
impl Copy for BmsBattboxTempAsReportedByVcu
Auto Trait Implementations§
impl Freeze for BmsBattboxTempAsReportedByVcu
impl RefUnwindSafe for BmsBattboxTempAsReportedByVcu
impl Send for BmsBattboxTempAsReportedByVcu
impl Sync for BmsBattboxTempAsReportedByVcu
impl Unpin for BmsBattboxTempAsReportedByVcu
impl UnwindSafe for BmsBattboxTempAsReportedByVcu
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