pub fn encode_to_vec<E: Encode, C: Config>( val: E, config: C, ) -> Result<Vec<u8>, EncodeError>where C::Mode: InternalFingerprintGuard<E, C>,
alloc
Encode the given value into a Vec<u8> with the given Config. See the config module for more information.
Vec<u8>
Config
Returns an EncodeError if the value cannot be encoded.
EncodeError