Skip to main content

split

Function split 

Source
pub fn split<T>(
    items: Vec<T>,
    owned: impl Fn(&T) -> bool,
    age_ms: impl Fn(&T) -> u64,
) -> (Vec<T>, Vec<T>, usize)
Expand description

結果の列を(受け取る物, 置いておく物, 捨てた数)に分ける。並びは届いた順のまま。