[][src]Function packs::structure::encode_struct

pub fn encode_struct<S: PackableStruct, T: Write>(
    value: &S,
    tag_byte: u8,
    writer: &mut T
) -> Result<usize, EncodeError>

Encodes a PackableStruct as a PackStream struct with the provided tag byte.