tfhe-versionable 0.8.0

tfhe-versionable: Add versioning informations/backward compatibility on rust types used for serialization
Documentation
1
2
3
4
5
6
7
8
//! How to perform conversion from one version to the next.

/// This trait should be implemented for each version of the original type that is not the current
/// one. The upgrade method is called in chains until we get to the last version of the type.
pub trait Upgrade<T> {
    type Error: std::error::Error + Send + Sync + 'static;
    fn upgrade(self) -> Result<T, Self::Error>;
}