pub(crate) fn generate_add_probe_call(&self, builder: &syn::Ident) -> TokenStream {
        //The `add_probe` method takes one type parameter, which should be the tuple form of the
        //arguments for this probe.
        let args_type = self.args_as_tuple_type_with_lifetimes();
        let probe_name = &self.spec.name;

        let span = self.spec.original_method.span();
        quote_spanned! {span=>
            #builder.add_probe::<#args_type>(#probe_name)
                .map_err(|e| format_err!(concat!("Error adding probe '", #probe_name, "': {}"), e))?;
        }
    }
/// When building a provider, individual probes are added by calling `add_probe` on the
/// `ProviderBuilder` implementation.  This method generates that call for this probe.  In this
/// usage the lifetime parameters are not needed.
When building a provider, individual probes are added by calling `add_probe` on the
`ProviderBuilder` implementation.  This method generates that call for this probe.  In this
usage the lifetime parameters are not needed.
When building a provider individual probes are added by calling ` add_probe ` on the ` ProviderBuilder ` implementation . This method generates that call for this probe . In this usage the lifetime parameters are not needed .
pub(crate) fn generate_add_probe_call(&self, builder: &syn::Ident) -> TokenStream {
        //The `add_probe` method takes one type parameter, which should be the tuple form of the
        //arguments for this probe.
        let args_type = self.args_as_tuple_type_with_lifetimes();
        let probe_name = &self.spec.name;
        let span = self.spec.original_method.span();
        quote_spanned! {span=>
            #builder.add_probe::<#args_type>(#probe_name)
                .map_err(|e| format_err!(concat!("Error adding probe '", #probe_name, "': {}"), e))?;
        }
    }
pub ( crate ) fn generate_add_probe_call ( & self , builder : & syn :: Ident ) -> TokenStream { //The `add_probe` method takes one type parameter, which should be the tuple form of the //arguments for this probe. let args_type = self . args_as_tuple_type_with_lifetimes ( ) ; let probe_name = & self . spec . name ; let span = self . spec . original_method . span ( ) ; quote_spanned ! { span builder add_probe args_type ( probe_name ) map_err ( e format_err ( concat ( " " probe_name " " ) e ) ) } }
When building a provider, individual probes are added by calling `add_probe` on the
`ProviderBuilder` implementation.
When building a provider individual probes are added by calling ` add_probe ` on the ` ProviderBuilder ` implementation .
&self
builder
&syn::Ident
&self
builder
&syn::Ident