Change endianness in bincode serde

Somehow the example from https://docs.rs/bincode/1.0.1/bincode/index.html does not show how to use the Config struct properly. Seems like config has no way to create such an object… Or I don’t get it.

So how do I change, say little endianness to big endianness in the previous example?

It’s hidden right here, in a separate function: https://docs.rs/bincode/1.*/bincode/fn.config.html

2 Likes