pub trait WeightSource<A> {
// Required method
fn weight_for(&self, attacker: &A, target: &A) -> Option<f64>;
}Expand description
A source of attack weights. Given an attacker and a target (and
whatever context Self carries), produce the weight for the
corresponding attack edge.
Implementations might read participant relationship metadata, personality compatibility, recent interaction history, or any other external state. The trait itself is stateless from this crate’s perspective.