Function hotshot_types::message::convert_proposal
source ยท pub fn convert_proposal<TYPES, PROPOSAL, PROPOSAL2>(
proposal: Proposal<TYPES, PROPOSAL>,
) -> Proposal<TYPES, PROPOSAL2>where
TYPES: NodeType,
PROPOSAL: HasViewNumber<TYPES> + DeserializeOwned,
PROPOSAL2: HasViewNumber<TYPES> + DeserializeOwned + From<PROPOSAL>,
Expand description
Convert a Proposal
by converting the underlying proposal type