Function rs_pbrt::core::pbrt::find_interval
source · pub fn find_interval<P>(size: i32, pred: P) -> i32where
P: Fn(i32) -> bool,
Expand description
Helper function which emulates the behavior of std::upper_bound().