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: to_commitment.rs
    path of file: ./repos/snarkVM/circuit/program/src/data/record
    
    the code of the file until where you have to start completion: // Copyright (C) 2019-2023 Aleo Systems Inc.
// This file is part of the snarkVM library.

// Licensed
    
    pub fn to_commitment(&self, program_id: &ProgramID<A>, record_name: &Identifier<A>) -> Field<A> {
        // Construct the input as `(program_id || record_name || record)`.
        let mut input = program_id.to_bits_le();
        record_name.write_bits_le(&mut input);
        self.write_bits_le(&mut input);
        // Compute the BHP hash of the program record.
        A::hash_bhp1024(&input)
    }