[][src]Function packs::ll::types::sized::encode_sized

pub fn encode_sized<T: Write, S: SizedType + SizedTypePack<T> + Sized>(
    value: &S,
    writer: &mut T
) -> Result<usize, EncodeError>

Encodes any type which has implemented the internal SizedType trait. This provides a way to reuse code of different sized encodings, like String, List and Dictionary.