pub struct KllState<'a> {
pub defines: HashMap<&'a str, &'a str>,
pub variables: HashMap<&'a str, Value<'a>>,
pub capabilities: HashMap<&'a str, Capability<'a>>,
pub keymap: Vec<Mapping<'a>>,
pub positions: HashMap<usize, Position>,
pub pixelmap: HashMap<usize, PixelDef>,
pub animations: HashMap<&'a str, Animation<'a>>,
}
Fields§
§defines: HashMap<&'a str, &'a str>
§variables: HashMap<&'a str, Value<'a>>
§capabilities: HashMap<&'a str, Capability<'a>>
§keymap: Vec<Mapping<'a>>
§positions: HashMap<usize, Position>
§pixelmap: HashMap<usize, PixelDef>
§animations: HashMap<&'a str, Animation<'a>>
Implementations§
Source§impl<'a> KllState<'a>
impl<'a> KllState<'a>
pub fn triggers(&self) -> impl Iterator<Item = &Trigger<'_>> + '_
pub fn trigger_lists(&self) -> impl Iterator<Item = &TriggerList<'_>> + '_
pub fn actions(&self) -> impl Iterator<Item = &Action<'_>> + '_
pub fn result_lists(&self) -> impl Iterator<Item = &ResultList<'_>> + '_
pub fn trigger_result_lists( &self, ) -> impl Iterator<Item = (&TriggerList<'_>, &ResultList<'_>)> + '_
pub fn scancode_map(&self) -> HashMap<&str, usize>
pub fn scancodes(&self) -> Vec<usize>
pub fn animations(&self) -> impl Iterator<Item = &AnimationResult<'_>> + '_
pub fn unicode_strings(&self) -> HashSet<String>
pub fn reduce(&self, base: KllState<'a>) -> Vec<Mapping<'a>>
Sourcepub fn generate_state_scheduling(&mut self)
pub fn generate_state_scheduling(&mut self)
Replaces any implied (KLL) state with explicit state
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for KllState<'a>
impl<'a> RefUnwindSafe for KllState<'a>
impl<'a> Send for KllState<'a>
impl<'a> Sync for KllState<'a>
impl<'a> Unpin for KllState<'a>
impl<'a> UnwindSafe for KllState<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more