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: stdout.rs
    path of file: ./repos/uefi-rs/uefi-test-runner/src/proto/console
    
    the code of the file until where you have to start completion: use uefi::prelude::*;
use uefi::proto::console::text::{Color, Output};

pub fn test(stdout: &mut Output) {
    info!("Running text output protocol test");

    get_current_mode(stdout);
    change_text_mode(stdout);
    
    
pub fn test(stdout: &mut Output) {
    info!("Running text output protocol test");

    get_current_mode(stdout);
    change_text_mode(stdout);
    change_color(stdout);
    center_text(stdout);

    // Print all modes.
    for (index, mode) in stdout.modes().enumerate() {
        info!(
            "- Text mode #{}: {} rows by {} columns",
            index,
            mode.rows(),
            mode.columns()
        );
    }

    // Should clean up after us.
    stdout.reset(false).unwrap();
}