pub fn write_with<T, F, R>(buffer: &mut T, f: F) -> Rwhere T: Buffer + ?Sized, F: FnOnce(Buf<'_>) -> R,
Calls f with a Buf, which provides safe methods for extending the initialized portion of the buffer.
f
Buf