pub fn load(data: &[u8]) -> crate::Result<Self> {
        let mut id = match data.len() {
            len if len == 24 => [0; 24],
            _ => return Err(crate::Error::InterfaceError),
        };
        id.copy_from_slice(data);
        Ok(Self(id))
    }
/// load an ID from inputted `data`
load an ID from inputted `data`
load an ID from inputted ` data `
pub fn load(data: &[u8]) -> crate::Result<Self> {
        let mut id = match data.len() {
            len if len == 24 => [0; 24],
            _ => return Err(crate::Error::InterfaceError),
        };
        id.copy_from_slice(data);
        Ok(Self(id))
    }
pub fn load ( data : & [ u8 ] ) -> crate :: Result < Self > { let mut id = match data . len ( ) { len if len == 24 => [ 0 ; 24 ] , _ => return Err ( crate :: Error :: InterfaceError ) , } ; id . copy_from_slice ( data ) ; Ok ( Self ( id ) ) }
load an ID from inputted `data`
load an ID from inputted ` data `
data
&[u8]