pub fn serialize_into<W, T: ?Sized>(writer: W, value: &T) -> Result<()> where
Serializes an object directly into a
Writer using the default configuration.
If the serialization would take more bytes than allowed by the size limit, an error
is returned and no bytes will be written into the