Function clipboard_win::raw::format_name

source ·
pub fn format_name(format: u32, out: Buffer<'_>) -> Option<&str>
Expand description

Returns format name based on it’s code.

§Parameters:

  • format - clipboard format code.
  • out - temporary buffer to hold text. Buffer can be created from &mut [u8] and &mut [core::mem::MaybeUninit<u8>]

§Return result:

  • Some Name of valid format.
  • None Format is invalid or doesn’t exist or overflow happened on custom name.