Skip to main content

write_with_header

Function write_with_header 

Source
pub fn write_with_header<T, E, E2, Output, Header, Body>(
    writer: &mut Output,
    header: Header,
    body: Body,
) -> Result<T, E2>
where Output: RawOutput<E>, Header: FnOnce(&mut Output, u64) -> Result<(), E>, Body: FnOnce(&mut Output) -> Result<T, E2>, E2: From<E>,