Function bincode::serialize_into
source · pub fn serialize_into<W, T>(writer: W, value: &T) -> Result<()>where
W: Write,
T: Serialize + ?Sized,
Expand description
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 Writer
.
Warning: the default configuration used by this function is not
the same as that used by the DefaultOptions
struct. See the
config
module for more details