elemental-shared 0.1.0

Lightweight, version-controlled data abstraction for persistent storage.
Documentation
1
2
3
4
5
6
7
8
9
use crate::version::{Migrator, VersionControlled};
use anyhow::Result;

pub struct NoMigrator;
impl<V: VersionControlled> Migrator<V> for NoMigrator {
    fn migrate(&self, value: V, _target_version: usize) -> Result<V> {
        Ok(value)
    }
}