Skip to main content

best_available

Function best_available 

Source
pub fn best_available(
    desired: Representation,
    held: &BTreeSet<Representation>,
) -> Option<Representation>
Expand description

The best locally-held representation no higher than desired — the degrade target. LQIP is always present, so this is Some whenever held contains it.