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: prompter.rs
    path of file: ./repos/deno/runtime/permissions
    
    the code of the file until where you have to start completion: // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

u
    
  unsafe fn is_input_buffer_empty(stdin: HANDLE) -> Result<bool, AnyError> {
    let mut buffer = Vec::with_capacity(1);
    let mut events_read = 0;
    let success =
      PeekConsoleInputW(stdin, buffer.as_mut_ptr(), 1, &mut events_read);
    if success != TRUE {
      bail!(
        "Could not peek the console input buffer: {}",
        std::io::Error::last_os_error()
      )
    }
    Ok(events_read == 0)
  }