fn filters_for_ids<T: Into<Uuid> + Copy>(
    filters: &mut Vec<Box<dyn AndFilterable>>,
    facet_name: &str,
    ids: &[T],
) {
    for id in ids.iter().copied() {
        let id: Uuid = id.into();
        filters.push(Box::new(CommonFilter {
            filter: FacetFilter {
                facet_name: facet_name.to_owned(),
                value: id.to_string(),
            },
            invert: false,
        }))
    }
}
/// Appends UUIDs to AND filter for a named facet
Appends UUIDs to AND filter for a named facet
Appends UUIDs to AND filter for a named facet
fn filters_for_ids<T: Into<Uuid> + Copy>(
    filters: &mut Vec<Box<dyn AndFilterable>>,
    facet_name: &str,
    ids: &[T],
) {
    for id in ids.iter().copied() {
        let id: Uuid = id.into();
        filters.push(Box::new(CommonFilter {
            filter: FacetFilter {
                facet_name: facet_name.to_owned(),
                value: id.to_string(),
            },
            invert: false,
        }))
    }
}
fn filters_for_ids < T : Into < Uuid > + Copy > ( filters : & mut Vec < Box < dyn AndFilterable > > , facet_name : & str , ids : & [ T ] , ) { for id in ids . iter ( ) . copied ( ) { let id : Uuid = id . into ( ) ; filters . push ( Box :: new ( CommonFilter { filter : FacetFilter { facet_name : facet_name . to_owned ( ) , value : id . to_string ( ) , } , invert : false , } ) ) } }
Appends UUIDs to AND filter for a named facet
Appends UUIDs to AND filter for a named facet
filters
&mut Vec<Box<dyn AndFilterable>>
facet_name
&str
ids
&[T]
filters
&mut Vec<Box<dyn AndFilterable>>
facet_name
&str
ids
&[T]