pub struct Layout {
pub blob: Vec<u8>,
}
impl crate::KeyboardTomlConfig {
pub fn layout(&self) -> Result<Layout, String> {
let blob = match &self.layout {
Some(l) => crate::layout::build_layout_blob(l, Some(self.total_encoders()))?,
None => Vec::new(),
};
Ok(Layout { blob })
}
}