pub struct Triggers<Event, Action> { /* private fields */ }
Expand description
A raw collection of triggers.
Implementations§
Source§impl<Event, Action> Triggers<Event, Action>
impl<Event, Action> Triggers<Event, Action>
Sourcepub fn compile<EventCompiler: Fn(Event) -> CompiledEvent, CompiledEvent: TriggerEvent, ActionCompiler: Fn(Action) -> CompiledEvent::Action>(
self,
event_compiler: &EventCompiler,
action_compiler: &ActionCompiler,
) -> CompiledTriggers<CompiledEvent>
pub fn compile<EventCompiler: Fn(Event) -> CompiledEvent, CompiledEvent: TriggerEvent, ActionCompiler: Fn(Action) -> CompiledEvent::Action>( self, event_compiler: &EventCompiler, action_compiler: &ActionCompiler, ) -> CompiledTriggers<CompiledEvent>
Compile the raw triggers.
Events are compiled by the event compiler, and actions are compiled by the action compiler.
Trait Implementations§
Auto Trait Implementations§
impl<Event, Action> Freeze for Triggers<Event, Action>
impl<Event, Action> RefUnwindSafe for Triggers<Event, Action>where
Event: RefUnwindSafe,
Action: RefUnwindSafe,
impl<Event, Action> Send for Triggers<Event, Action>
impl<Event, Action> Sync for Triggers<Event, Action>
impl<Event, Action> Unpin for Triggers<Event, Action>
impl<Event, Action> UnwindSafe for Triggers<Event, Action>where
Event: UnwindSafe,
Action: UnwindSafe,
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