Struct m_bus_parser::user_data::DataRecords
source · pub struct DataRecords {
pub inner: ArrayVec<DataRecord, MAXIMUM_VARIABLE_DATA_BLOCKS>,
}Fields§
§inner: ArrayVec<DataRecord, MAXIMUM_VARIABLE_DATA_BLOCKS>Implementations§
source§impl DataRecords
impl DataRecords
pub fn new() -> Self
pub fn add_record(&mut self, record: DataRecord) -> Result<(), &'static str>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn last(&self) -> Option<&DataRecord>
pub fn get(&self, index: usize) -> Option<&DataRecord>
Trait Implementations§
source§impl Debug for DataRecords
impl Debug for DataRecords
source§impl Default for DataRecords
impl Default for DataRecords
source§impl PartialEq for DataRecords
impl PartialEq for DataRecords
source§fn eq(&self, other: &DataRecords) -> bool
fn eq(&self, other: &DataRecords) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&[u8]> for DataRecords
impl TryFrom<&[u8]> for DataRecords
§type Error = VariableUserDataError
type Error = VariableUserDataError
The type returned in the event of a conversion error.
source§fn try_from(data: &[u8]) -> Result<DataRecords, VariableUserDataError>
fn try_from(data: &[u8]) -> Result<DataRecords, VariableUserDataError>
Performs the conversion.
impl StructuralPartialEq for DataRecords
Auto Trait Implementations§
impl Freeze for DataRecords
impl RefUnwindSafe for DataRecords
impl Send for DataRecords
impl Sync for DataRecords
impl Unpin for DataRecords
impl UnwindSafe for DataRecords
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