You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: type_renderer.rs
    path of file: ./repos/prisma-engines/query-engine/dmmf/src/ast_builders/schema_ast_builder
    
    the code of the file until where you have to start completion: use super::{DmmfTypeReference, RenderContext, TypeLocation};
use schema::{InnerOutputType, InputType, ObjectTag, OutputType, ScalarType};

pub(super) fn render_output_type<'a>(output_type: &OutputType<'a>, ctx: &mut RenderContext<'a>) -> DmmfTypeReference {
    match &output_type.inner {
        _ if output_type.is_list() => {
            let mut type_reference = render_output_type(&OutputType::non_list(output_type.inner.clone()), ctx);
            type_reference.is_list = true;
            type_reference
        }
        InnerOutputType::Object(obj) => {
            ctx.mark_to_be_rendered(obj);

            let type_reference = DmmfT
    
pub(super) fn render_input_type<'a>(input_type: &InputType<'a>, ctx: &mut RenderContext<'a>) -> DmmfTypeReference {
    match input_type {
        InputType::Object(ref obj) => {
            ctx.mark_to_be_rendered(obj);

            let location = match obj.tag() {
                Some(ObjectTag::FieldRefType(_)) => TypeLocation::FieldRefTypes,
                _ => TypeLocation::InputObjectTypes,
            };

            let type_reference = DmmfTypeReference {
                typ: obj.identifier.name(),
                namespace: Some(obj.identifier.namespace().to_owned()),
                location,
                is_list: false,
            };

            type_reference
        }

        InputType::Enum(et) => {
            ctx.mark_to_be_rendered(et);

            let ident = et.identifier();
            let type_reference = DmmfTypeReference {
                typ: ident.name(),
                namespace: Some(ident.namespace().to_owned()),
                location: TypeLocation::EnumTypes,
                is_list: false,
            };

            type_reference
        }

        InputType::List(ref l) => {
            let mut type_reference = render_input_type(l, ctx);
            type_reference.is_list = true;

            type_reference
        }

        InputType::Scalar(ref scalar) => {
            let stringified = scalar.to_string();

            DmmfTypeReference {
                typ: stringified,
                namespace: None,
                location: TypeLocation::Scalar,
                is_list: false,
            }
        }
    }
}