pub trait IntoVersion: Sized {
// Required method
fn into_version(self, version: Version) -> Result<Self, ()>;
// Provided method
fn into_latest(self) -> Result<Self, ()> { ... }
}Expand description
Attempt to convert self into a particular version of itself.
Required Methods§
Sourcefn into_version(self, version: Version) -> Result<Self, ()>
fn into_version(self, version: Version) -> Result<Self, ()>
Consume self and return same value expressed in some particular version of XCM.
Provided Methods§
Sourcefn into_latest(self) -> Result<Self, ()>
fn into_latest(self) -> Result<Self, ()>
Consume self and return same value expressed the latest version of XCM.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.