pub struct SignalMappingValidator { /* private fields */ }
Expand description
Helper struct to validate signal mappings
Implementations§
Source§impl SignalMappingValidator
impl SignalMappingValidator
Sourcepub fn add_signal(
&mut self,
bit_position: u32,
bit_length: u64,
byte_order: ByteOrder,
update_bit: Option<u32>,
) -> bool
pub fn add_signal( &mut self, bit_position: u32, bit_length: u64, byte_order: ByteOrder, update_bit: Option<u32>, ) -> bool
add a signal to the validator
This will mark the bits in the bitmap that are used by the signal. If the signal overlaps with any previously added signal, then the method will return false.
Auto Trait Implementations§
impl Freeze for SignalMappingValidator
impl RefUnwindSafe for SignalMappingValidator
impl Send for SignalMappingValidator
impl Sync for SignalMappingValidator
impl Unpin for SignalMappingValidator
impl UnwindSafe for SignalMappingValidator
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