pub struct BmsDebug(/* private fields */);Implementations§
Source§impl BmsDebug
impl BmsDebug
Sourcepub const fn with_spare0_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_spare0_checked(self, value: u8) -> Result<Self, ()>
Internal
Bits: 0..8
Sourcepub const fn with_spare0(self, value: u8) -> Self
pub const fn with_spare0(self, value: u8) -> Self
Internal
Bits: 0..8
Sourcepub const fn set_spare0(&mut self, value: u8)
pub const fn set_spare0(&mut self, value: u8)
Internal
Bits: 0..8
Sourcepub const fn with_spare1_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_spare1_checked(self, value: u8) -> Result<Self, ()>
Internal
Bits: 8..16
Sourcepub const fn with_spare1(self, value: u8) -> Self
pub const fn with_spare1(self, value: u8) -> Self
Internal
Bits: 8..16
Sourcepub const fn set_spare1(&mut self, value: u8)
pub const fn set_spare1(&mut self, value: u8)
Internal
Bits: 8..16
Sourcepub const fn with_spare2_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_spare2_checked(self, value: u16) -> Result<Self, ()>
Internal
Bits: 16..32
Sourcepub const fn with_spare2(self, value: u16) -> Self
pub const fn with_spare2(self, value: u16) -> Self
Internal
Bits: 16..32
Sourcepub const fn set_spare2(&mut self, value: u16)
pub const fn set_spare2(&mut self, value: u16)
Internal
Bits: 16..32
Sourcepub const fn with_spare3_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_spare3_checked(self, value: u32) -> Result<Self, ()>
Internal
Bits: 32..64
Sourcepub const fn with_spare3(self, value: u32) -> Self
pub const fn with_spare3(self, value: u32) -> Self
Internal
Bits: 32..64
Sourcepub const fn set_spare3(&mut self, value: u32)
pub const fn set_spare3(&mut self, value: u32)
Internal
Bits: 32..64
Trait Implementations§
Source§impl ToCanFrame for BmsDebug
impl ToCanFrame for BmsDebug
impl Copy for BmsDebug
Auto Trait Implementations§
impl Freeze for BmsDebug
impl RefUnwindSafe for BmsDebug
impl Send for BmsDebug
impl Sync for BmsDebug
impl Unpin for BmsDebug
impl UnwindSafe for BmsDebug
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