Trait druid_shell::IntoKey

source ·
pub trait IntoKey {
    // Required method
    fn into_key(self) -> KbKey;
}
Expand description

A convenience trait for creating Key objects.

This trait is implemented by KbKey itself and also strings, which are converted into the Character variant. It is defined this way and not using the standard Into mechanism because KbKey is a type in an external crate.

Required Methods§

source

fn into_key(self) -> KbKey

Implementations on Foreign Types§

source§

impl IntoKey for &str

Implementors§