pub struct AssignmentSuggestor;Expand description
Solves a linear-sum assignment problem using the Hungarian algorithm.
Registers as a zero-configuration unit — no injected state required.
Trait Implementations§
Source§impl Suggestor for AssignmentSuggestor
impl Suggestor for AssignmentSuggestor
Source§fn dependencies(&self) -> &[ContextKey]
fn dependencies(&self) -> &[ContextKey]
Context keys this suggestor reads from. Read more
Source§fn complexity_hint(&self) -> Option<&'static str>
fn complexity_hint(&self) -> Option<&'static str>
Algorithmic complexity of this suggestor’s core computation. Read more
Source§fn accepts(&self, ctx: &dyn Context) -> bool
fn accepts(&self, ctx: &dyn Context) -> bool
Pure predicate: should this suggestor execute given the current context? Read more
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 dyn Context,
) -> Pin<Box<dyn Future<Output = AgentEffect> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 dyn Context,
) -> Pin<Box<dyn Future<Output = AgentEffect> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Produce effects given the current context. Read more
Source§fn provenance(&self) -> Provenance
fn provenance(&self) -> Provenance
Typed provenance for this suggestor’s emitted facts and execution span. Read more
Auto Trait Implementations§
impl Freeze for AssignmentSuggestor
impl RefUnwindSafe for AssignmentSuggestor
impl Send for AssignmentSuggestor
impl Sync for AssignmentSuggestor
impl Unpin for AssignmentSuggestor
impl UnsafeUnpin for AssignmentSuggestor
impl UnwindSafe for AssignmentSuggestor
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