pub fn to_bytes(&self) -> Vec<u8> {
        let mut bytes = Vec::with_capacity(ENTRY_ID_SIZE + self.name.len());
        bytes.extend_from_slice(self.id.as_ref());
        bytes.extend_from_slice(self.name.as_bytes());
        bytes
    }
/// Serialize a DirEntry to its byte representation
Serialize a DirEntry to its byte representation
Serialize a DirEntry to its byte representation
pub fn to_bytes(&self) -> Vec<u8> {
        let mut bytes = Vec::with_capacity(ENTRY_ID_SIZE + self.name.len());
        bytes.extend_from_slice(self.id.as_ref());
        bytes.extend_from_slice(self.name.as_bytes());
        bytes
    }
pub fn to_bytes ( & self ) -> Vec < u8 > { let mut bytes = Vec :: with_capacity ( ENTRY_ID_SIZE + self . name . len ( ) ) ; bytes . extend_from_slice ( self . id . as_ref ( ) ) ; bytes . extend_from_slice ( self . name . as_bytes ( ) ) ; bytes }
Serialize a DirEntry to its byte representation
Serialize a DirEntry to its byte representation
&self
&self