pub trait Convertible<C>: TryFrom<C> + Into<C> { }Expand description
General-purpose helper converter enabling TryFrom and Into 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.
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.