pub trait BitfieldSerialize {
    // Required methods
    fn serialize(&self) -> Vec<u8> ⓘ;
    fn deserialize(data: &[u8]) -> Result<Self, String>
       where Self: Sized;
    // Provided methods
    fn to_hex(&self) -> String { ... }
    fn from_hex(hex_str: &str) -> Result<Self, String>
       where Self: Sized { ... }
}Expand description
Trait for serializing and deserializing bitfield structures.