TryAs
staging_
xcm
7.0.1
TryAs
Required Methods
try_as
Implementors
In crate staging_
xcm
Modules
latest
lts
opaque
prelude
v3
v4
v5
Structs
AlwaysV3
AlwaysV4
AlwaysV5
DoubleEncoded
Enums
Unsupported
VersionedAsset
VersionedAssetId
VersionedAssets
VersionedInteriorLocation
VersionedJunction
VersionedLocation
VersionedNetworkId
VersionedResponse
VersionedXcm
Constants
MAX_INSTRUCTIONS_TO_DECODE
MAX_XCM_DECODE_DEPTH
Traits
GetVersion
IdentifyVersion
IntoVersion
TryAs
WrapVersion
Type Aliases
AlwaysLatest
AlwaysLts
Version
staging_xcm
Trait
TryAs
Copy item path
Settings
Help
Summary
Source
pub trait TryAs<T> { // Required method fn
try_as
(&self) ->
Result
<
&T
,
()
>; }
Required Methods
§
Source
fn
try_as
(&self) ->
Result
<
&T
,
()
>
Implementors
§
Source
§
impl
TryAs
<
AssetId
> for
VersionedAssetId
Source
§
impl
TryAs
<
Junction
> for
VersionedJunction
Source
§
impl
TryAs
<
Junctions
> for
VersionedInteriorLocation
Source
§
impl
TryAs
<
NetworkId
> for
VersionedNetworkId
Source
§
impl
TryAs
<
Response
> for
VersionedResponse
Source
§
impl
TryAs
<
Junction
> for
VersionedJunction
Source
§
impl
TryAs
<
Junctions
> for
VersionedInteriorLocation
Source
§
impl
TryAs
<
NetworkId
> for
VersionedNetworkId
Source
§
impl
TryAs
<
Response
> for
VersionedResponse
Source
§
impl
TryAs
<
Junction
> for
VersionedJunction
Source
§
impl
TryAs
<
Junctions
> for
VersionedInteriorLocation
Source
§
impl
TryAs
<
NetworkId
> for
VersionedNetworkId
Source
§
impl
TryAs
<
Response
> for
VersionedResponse
Source
§
impl
TryAs
<
MultiAsset
> for
VersionedAsset
Source
§
impl
TryAs
<
MultiAssets
> for
VersionedAssets
Source
§
impl
TryAs
<
MultiLocation
> for
VersionedLocation
Source
§
impl
TryAs
<
Asset
> for
VersionedAsset
Source
§
impl
TryAs
<
AssetId
> for
VersionedAssetId
Source
§
impl
TryAs
<
Assets
> for
VersionedAssets
Source
§
impl
TryAs
<
Location
> for
VersionedLocation
Source
§
impl
TryAs
<
Asset
> for
VersionedAsset
Source
§
impl
TryAs
<
AssetId
> for
VersionedAssetId
Source
§
impl
TryAs
<
Assets
> for
VersionedAssets
Source
§
impl
TryAs
<
Location
> for
VersionedLocation