pub fn encode_with<W: IntoWrite, V: Encode<W::Write>>(
writer: W,
context: Context<'_>,
value: V,
) -> EncodingResult<()>Expand description
Encodes the given value by constructing an encoder on the fly and using it to wrap the writer, with the given context.