Trait ibc_core::client::context::prelude::Convertible

source ·
pub trait Convertible<C, E>: TryInto<C, Error = E> + From<C> { }
Expand description

General-purpose helper converter enabling TryInto and From conversions primarily intended between an enum and its variants. This usually used by standalone functions as a trait bound allowing them to obtain the concrete local type from the enum containing that concrete type as its variant, like when enum AnyConsensusState contains the Tendermint ConsensusState.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, C, E> Convertible<C, E> for T
where T: TryInto<C, Error = E> + From<C>,