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.