pub fn select_framework_profiles<T: Copy>( profiles: &[T], name_of: impl Fn(T) -> &'static str, detect: impl Fn(T) -> bool, selection: FrameworkProfileSelection, unknown_error: impl Fn(&str) -> String, ) -> Result<Vec<T>, String>