//! 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.
pubtraitUpgrade<T> {typeError:std::error::Error +Send+Sync+'static;fnupgrade(self)->Result<T, Self::Error>;}