pub fn parse_move_instance<T: MoveType + for<'de> Deserialize<'de>>(
type_tag: &TypeTag,
bytes: &[u8],
) -> Result<(T::TypeTag, T), FromRawInstanceError>Available on crate feature
bcs only.Expand description
Parse an instance of a MoveType from a generic type tag and BCS bytes.
This function short-circuits if the type tag can’t be converted to the MoveType::TypeTag,
avoiding deserialization of the BCS bytes in such cases.