pub trait EncodeWithMetadata {
    fn encode_with_metadata(
        &self,
        type_id: u32,
        metadata: &Metadata,
        bytes: &mut Vec<u8>
    ) -> Result<(), Error>; }
Expand description

This trait is implemented for types which can be encoded with the help of metadata.

Required Methods§

SCALE encode this type to bytes, possibly with the help of metadata.

Implementors§