servicepoint2 0.4.3

A rust library for the CCCB Service Point Display.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// A trait for getting the underlying raw byte slices of data containers.
///
/// The expectation is that you can create an equal instance with this data given the additional
/// metadata needed.
pub trait DataRef {
    /// Get the underlying bytes writable.
    fn data_ref_mut(&mut self) -> &mut [u8];

    /// Get the underlying bytes read-only.
    fn data_ref(&self) -> &[u8];
}