Trait xcm::IntoVersion
source · pub trait IntoVersion: Sized {
fn into_version(self, version: Version) -> Result<Self, ()>;
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.