Function rich_sdl2_rust::hint::set_hint

source ·
pub fn set_hint(key: &str, value: &str) -> Result<()>
Expand description

Sets the hint value of the key, or Err if does not exist.

§Panics

Panics if key or value was empty.

§Errors

Returns Err if the hint of key is unsupported.