7 lines
260 B
Rust
7 lines
260 B
Rust
/// A trait for platform-specific keyboard layouts
|
|
pub trait PlatformKeyboardLayout {
|
|
/// Get the keyboard layout ID, which should be unique to the layout
|
|
fn id(&self) -> &str;
|
|
/// Get the keyboard layout display name
|
|
fn name(&self) -> &str;
|
|
}
|