Function rust_type

Source
pub fn rust_type(
    ty: &Type,
    name_counter: &mut u32,
    declarations: &mut TokenStream,
) -> TokenStream
Expand description

Generate a TokenStream containing the rust type name for a type.

The name_counter parameter is used to generate names for each recursively visited type. The declarations parameter is used to accumulate declarations for each recursively visited type.