@@ -28,6 +28,7 @@ The `Encode` trait is used for encoding of data into the SCALE format. The `Enco
The `Decode` trait is used for deserialization/decoding of encoded data into the respective types.
*`fn min_encoded_len() -> usize`: The minimum length a valid encoded value can have.
*`fn decode<I: Input>(value: &mut I) -> Result<Self, Error>`: Tries to decode the value from SCALE format to the type it is called on. Returns an `Err` if the decoding fails.
### CompactAs
...
...
@@ -156,4 +157,4 @@ This repository also contains an implementation of derive macros for the Parity
## License
This Rust implementation of Parity SCALE Codec is licenced under the [Apache 2 license](./LICENSE).
\ No newline at end of file
This Rust implementation of Parity SCALE Codec is licenced under the [Apache 2 license](./LICENSE).