21 lines · 354 B · Rust
RawDownload
use crate::PlatformKeyboardLayout; pub(crate) struct LinuxKeyboardLayout {    id: String,} impl PlatformKeyboardLayout for LinuxKeyboardLayout {    fn id(&self) -> &str {        &self.id    }     fn name(&self) -> &str {        &self.id    }} impl LinuxKeyboardLayout {    pub(crate) fn new(id: String) -> Self {        Self { id }    }}