Stdto
stdto
provides a set of functional traits for conversion between various data representations.
| Examples | Docs | Latest Note |
toml
stdto = "0.2.0"
How to
```rust
struct Test {
a: u32,
b: String,
c: [u8; 32],
d: Vec
bytes = test.tobytes(); Test::frombytes(&bytes); ```
```rust
struct Test { ... }
test.to_hash::
rust
hex = whatever.to_hex();
Vec::<u8>::from_hex(hex);
rust
let mut arr = [0u8; 32];
arr.copy_from_hex(hex);