fn extend_with_runtime_decl_path(mut trait_: Path) -> Path {
	let runtime = {
		let trait_name = &trait_
			.segments
			.last()
			.as_ref()
			.expect("Trait path should always contain at least one item; qed")
			.value()
			.ident;

		generate_runtime_mod_name_for_trait(trait_name)
	};

	let pos = trait_.segments.len() - 1;
	trait_.segments.insert(pos, runtime.clone().into());
	trait_
}
/// Extend the given trait path with module that contains the declaration of the trait for the
/// runtime.
Extend the given trait path with module that contains the declaration of the trait for the
runtime.
Extend the given trait path with module that contains the declaration of the trait for the runtime .
fn extend_with_runtime_decl_path(mut trait_: Path) -> Path {
	let runtime = {
		let trait_name = &trait_
			.segments
			.last()
			.as_ref()
			.expect("Trait path should always contain at least one item; qed")
			.value()
			.ident;
		generate_runtime_mod_name_for_trait(trait_name)
	};
	let pos = trait_.segments.len() - 1;
	trait_.segments.insert(pos, runtime.clone().into());
	trait_
}
fn extend_with_runtime_decl_path ( mut trait_ : Path ) -> Path { let runtime = { let trait_name = & trait_ . segments . last ( ) . as_ref ( ) . expect ( " " ) . value ( ) . ident ; generate_runtime_mod_name_for_trait ( trait_name ) } ; let pos = trait_ . segments . len ( ) - 1 ; trait_ . segments . insert ( pos , runtime . clone ( ) . into ( ) ) ; trait_ }
Extend the given trait path with module that contains the declaration of the trait for the
runtime.
Extend the given trait path with module that contains the declaration of the trait for the runtime .
trait_
Path
trait_
Path