pub fn get_program(program: &Path) -> Result<Program, ProgramError>Expand description
Loads a Cairo program from a file.
This function reads a Cairo program from the specified file path, expecting
an entry point named "main". It returns a Program instance on success or a
ProgramError if the file cannot be read or parsed as a valid Cairo program.
§Arguments
program- A reference to the file path containing the Cairo program.
§Errors
Returns a ProgramError if the program file cannot be read or is invalid.