Function into_to_from

Source
pub fn into_to_from<T, U>(_: &impl AsyncTryInto<U>) -> IntoAdapter<T, U>
Expand description

Creates an IntoAdapter for converting between types using AsyncTryInto.

This utility function helps in creating type adapters for asynchronous conversions between different types that implement AsyncTryInto.

§Type Parameters

  • T: The source type being converted from
  • U: The target type being converted to

§Returns

An IntoAdapter that can be used for type conversions