Trait staging_xcm::IntoVersion
source · 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.
Object Safety§
This trait is not object safe.