pub struct MatchCandidates {
    candidates: Vec<Candidate>,
    all_canidates: Vec<Entity>,
}
Expand description

Utility type to match T targets against C candidates to within buffer using O(T log C) time and O(C) space

Each candidate will be selected for at most one target with targets being served in order.

Matching will prefer candidates closer to a target w.r.t. the max-norm and choose randomly between the best candidates.

Fields

candidates: Vec<Candidate>all_canidates: Vec<Entity>

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.