pub struct MotifEngine { /* private fields */ }Expand description
The thing that runs the grammar over a stream and emits episodes.
Implementations§
Source§impl MotifEngine
impl MotifEngine
pub fn new(grammar: MotifGrammar) -> Self
Sourcepub fn run(&self, stream: &ResidualStream) -> Vec<Episode>
pub fn run(&self, stream: &ResidualStream) -> Vec<Episode>
Run all five motif state machines over the stream. Output is time-ordered and deterministic for a given (stream, grammar) pair.
Auto Trait Implementations§
impl Freeze for MotifEngine
impl RefUnwindSafe for MotifEngine
impl Send for MotifEngine
impl Sync for MotifEngine
impl Unpin for MotifEngine
impl UnsafeUnpin for MotifEngine
impl UnwindSafe for MotifEngine
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