fn generate_runtime_info_impl(trait_: &ItemTrait, version: u64) -> TokenStream {
	let trait_name = &trait_.ident;
	let crate_ = generate_crate_access(HIDDEN_INCLUDES_ID);
	let id = generate_runtime_api_id(&trait_name.to_string());
	let version = generate_runtime_api_version(version as u32);
	let (impl_generics, ty_generics, where_clause) = trait_.generics.split_for_impl();

	quote!(
		#[cfg(any(feature = "std", test))]
		impl #impl_generics #crate_::runtime_api::RuntimeApiInfo
			for #trait_name #ty_generics #where_clause
		{
			#id
			#version
		}
	)
}
/// Generates the implementation of `RuntimeApiInfo` for the given trait.
Generates the implementation of `RuntimeApiInfo` for the given trait.
Generates the implementation of ` RuntimeApiInfo ` for the given trait .
fn generate_runtime_info_impl(trait_: &ItemTrait, version: u64) -> TokenStream {
	let trait_name = &trait_.ident;
	let crate_ = generate_crate_access(HIDDEN_INCLUDES_ID);
	let id = generate_runtime_api_id(&trait_name.to_string());
	let version = generate_runtime_api_version(version as u32);
	let (impl_generics, ty_generics, where_clause) = trait_.generics.split_for_impl();
	quote!(
		#[cfg(any(feature = "std", test))]
		impl #impl_generics #crate_::runtime_api::RuntimeApiInfo
			for #trait_name #ty_generics #where_clause
		{
			#id
			#version
		}
	)
}
fn generate_runtime_info_impl ( trait_ : & ItemTrait , version : u64 ) -> TokenStream { let trait_name = & trait_ . ident ; let crate_ = generate_crate_access ( HIDDEN_INCLUDES_ID ) ; let id = generate_runtime_api_id ( & trait_name . to_string ( ) ) ; let version = generate_runtime_api_version ( version as u32 ) ; let ( impl_generics , ty_generics , where_clause ) = trait_ . generics . split_for_impl ( ) ; quote ! ( [ cfg ( any ( feature " " test ) ) ] impl impl_generics crate_ runtime_api RuntimeApiInfo for trait_name ty_generics where_clause { id version } ) }
Generates the implementation of `RuntimeApiInfo` for the given trait.
Generates the implementation of ` RuntimeApiInfo ` for the given trait .
trait_
&ItemTrait
version
u64
trait_
&ItemTrait
version
u64