pub struct Unsigned { /* private fields */ }
Expand description
A type modeling multiple bits.
The length
number of bits represent an unsigned integer which is multiplied with the factor
,
and summed up with the offset
. The endian
controls the exact sequence of selected bits.
The following formula summarizes the relation between the bit sequence, factor
, and offset
:
result = bits_unsigned * factor + offset
Implementations§
Trait Implementations§
Source§impl DefaultDecode<f64> for Unsigned
impl DefaultDecode<f64> for Unsigned
Source§fn default_decode<D: CANRead>(&self, data: &D) -> T
fn default_decode<D: CANRead>(&self, data: &D) -> T
Tries to decode a value. If the data is not decodable, a default value is returned.
Otherwise, the decoded value is returned.
impl StructuralPartialEq for Unsigned
Auto Trait Implementations§
impl Freeze for Unsigned
impl RefUnwindSafe for Unsigned
impl Send for Unsigned
impl Sync for Unsigned
impl Unpin for Unsigned
impl UnwindSafe for Unsigned
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