fn filters_for_ints<T: Into<i64> + Copy>(
    filters: &mut Vec<Box<dyn AndFilterable>>,
    facet_name: &str,
    ints: &[T],
) {
    for v in ints {
        let v: i64 = (*v).into();
        filters.push(Box::new(CommonFilter {
            filter: FacetFilter {
                facet_name: facet_name.to_owned(),
                value: v.to_string(),
            },
            invert: false,
        }))
    }
}
/// Appends int-based IDs to AND filter for a named facet
Appends int-based IDs to AND filter for a named facet
Appends int - based IDs to AND filter for a named facet
fn filters_for_ints<T: Into<i64> + Copy>(
    filters: &mut Vec<Box<dyn AndFilterable>>,
    facet_name: &str,
    ints: &[T],
) {
    for v in ints {
        let v: i64 = (*v).into();
        filters.push(Box::new(CommonFilter {
            filter: FacetFilter {
                facet_name: facet_name.to_owned(),
                value: v.to_string(),
            },
            invert: false,
        }))
    }
}
fn filters_for_ints < T : Into < i64 > + Copy > ( filters : & mut Vec < Box < dyn AndFilterable > > , facet_name : & str , ints : & [ T ] , ) { for v in ints { let v : i64 = ( * v ) . into ( ) ; filters . push ( Box :: new ( CommonFilter { filter : FacetFilter { facet_name : facet_name . to_owned ( ) , value : v . to_string ( ) , } , invert : false , } ) ) } }
Appends int-based IDs to AND filter for a named facet
Appends int - based IDs to AND filter for a named facet
filters
&mut Vec<Box<dyn AndFilterable>>
facet_name
&str
ints
&[T]
filters
&mut Vec<Box<dyn AndFilterable>>
facet_name
&str
ints
&[T]