pub(super) fn generate_init_provider(
    init: ProviderInitSpecification,
) -> TracersResult<TokenStream> {
    //This couldn't be simpler.  We must assume the caller provided a valid provider trait.  If
    //they didn't this will fail at compile time in a fairly obvious way.
    //
    //So we just generate code to call the init function that the provider trait generator will
    //have already generated on the trait itself.
    let provider = init.provider;
    let span = provider.span();
    Ok(quote_spanned! {span=>
        #provider::__try_init_provider()
    })
}
/// Generates the standard provider init call.  Some implementations may use a different one but
/// this is the typical impl.
Generates the standard provider init call.  Some implementations may use a different one but
this is the typical impl.
Generates the standard provider init call . Some implementations may use a different one but this is the typical impl .
pub(super) fn generate_init_provider(
    init: ProviderInitSpecification,
) -> TracersResult<TokenStream> {
    //This couldn't be simpler.  We must assume the caller provided a valid provider trait.  If
    //they didn't this will fail at compile time in a fairly obvious way.
    //
    //So we just generate code to call the init function that the provider trait generator will
    //have already generated on the trait itself.
    let provider = init.provider;
    let span = provider.span();
    Ok(quote_spanned! {span=>
        #provider::__try_init_provider()
    })
}
pub ( super ) fn generate_init_provider ( init : ProviderInitSpecification , ) -> TracersResult < TokenStream > { //This couldn't be simpler.  We must assume the caller provided a valid provider trait.  If //they didn't this will fail at compile time in a fairly obvious way. // //So we just generate code to call the init function that the provider trait generator will //have already generated on the trait itself. let provider = init . provider ; let span = provider . span ( ) ; Ok ( quote_spanned ! { span provider try_init_provider ( ) } ) }
Generates the standard provider init call.
Generates the standard provider init call .
init
ProviderInitSpecification
init
ProviderInitSpecification