Skip to main content

PlatformKeyboardLayout

Trait PlatformKeyboardLayout 

Source
pub trait PlatformKeyboardLayout {
    // Required methods
    fn id(&self) -> &str;
    fn name(&self) -> &str;
}
Expand description

重导出平台抽象层相关类型 平台特定键盘布局的 trait

Required Methods§

Source

fn id(&self) -> &str

获取键盘布局 ID,该 ID 对布局应该是唯一的

Source

fn name(&self) -> &str

获取键盘布局显示名称

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§