Function buffer_get_name

Source
pub fn buffer_get_name(buffer: BufferId) -> Result<&'static str>
Expand description

Gets the human-readable, constant name of a buffer.

§Returns

  • Ok(&str) - The name of the passed buffer.
  • Err(std::io::Error) - An error.

§Errors