[−][src]Module elements::encode
Consensus-encodable types
Enums
Error | Encoding error |
Constants
MAX_VEC_SIZE | Maximum size, in bytes, of a vector we are allowed to decode |
Traits
Decodable | Data which can be encoded in a consensus-consistent way |
Encodable | Data which can be encoded in a consensus-consistent way |
Functions
deserialize | Deserialize an object from a vector, will error if said deserialization doesn't consume the entire vector. |
deserialize_partial | Deserialize an object from a vector, but will not report an error if said deserialization doesn't consume the entire vector. |
serialize | Encode an object into a vector |
serialize_hex | Encode an object into a hex-encoded string |