pub struct DiscoveryEngine { /* private fields */ }Expand description
Discovery engine for pattern detection
Implementations§
Source§impl DiscoveryEngine
impl DiscoveryEngine
Sourcepub fn new(config: DiscoveryConfig) -> Self
pub fn new(config: DiscoveryConfig) -> Self
Create a new discovery engine
Sourcepub fn detect(
&mut self,
signals: &[CoherenceSignal],
) -> Result<Vec<DiscoveryPattern>>
pub fn detect( &mut self, signals: &[CoherenceSignal], ) -> Result<Vec<DiscoveryPattern>>
Detect patterns from coherence signals
Sourcepub fn patterns(&self) -> &[DiscoveryPattern]
pub fn patterns(&self) -> &[DiscoveryPattern]
Get all discovered patterns
Sourcepub fn patterns_by_category(
&self,
category: PatternCategory,
) -> Vec<&DiscoveryPattern>
pub fn patterns_by_category( &self, category: PatternCategory, ) -> Vec<&DiscoveryPattern>
Get patterns by category
Auto Trait Implementations§
impl Freeze for DiscoveryEngine
impl RefUnwindSafe for DiscoveryEngine
impl Send for DiscoveryEngine
impl Sync for DiscoveryEngine
impl Unpin for DiscoveryEngine
impl UnwindSafe for DiscoveryEngine
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more