pub struct Trigger<'a> {
pub trigger: TriggerType<'a>,
pub state: Option<StateMap>,
}
Fields§
§trigger: TriggerType<'a>
§state: Option<StateMap>
Implementations§
Source§impl<'a> Trigger<'a>
impl<'a> Trigger<'a>
Sourcepub fn kll_core_condition(&self) -> TriggerCondition
pub fn kll_core_condition(&self) -> TriggerCondition
Converts to a kll-core TriggerCondition
If no scheduling is defined, automatically generate state scheduling parameters. e.g. For S1 : U“A“; S1(P) : U“A“(P); S1(R) : U“A“(R); kll-core does not automatically deduce states like the original controller firmware did. TODO ^ Use a kll-compiler function to automatically duplicate so we don’t have to do it here.
Trait Implementations§
impl<'a> Eq for Trigger<'a>
impl<'a> StructuralPartialEq for Trigger<'a>
Auto Trait Implementations§
impl<'a> Freeze for Trigger<'a>
impl<'a> RefUnwindSafe for Trigger<'a>
impl<'a> Send for Trigger<'a>
impl<'a> Sync for Trigger<'a>
impl<'a> Unpin for Trigger<'a>
impl<'a> UnwindSafe for Trigger<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.