pub(super) trait TypeMigration<From, To> {
    // Required method
    fn migrate_type(from: From, store: &impl Blockstore) -> Result<To>;
}
Expand description

Trait that migrates from one data structure to another, similar to std::convert::TryInto trait but taking an extra block store parameter

Required Methods§

source

fn migrate_type(from: From, store: &impl Blockstore) -> Result<To>

Object Safety§

This trait is not object safe.

Implementors§