pub fn members_by_paths<B>(
        &self,
        paths: impl IntoIterator<Item = impl AsRef<Utf8Path>>,
    ) -> Result<B, Error>
    where
        B: FromIterator<PackageMetadata<'g>>,
    {
        paths
            .into_iter()
            .map(|path| self.member_by_path(path.as_ref()))
            .collect()
    }
Maps the given paths to their corresponding workspace members, returning a new value of
the specified collection type (e.g. `Vec`).

Returns an error if any of the paths were unknown.
guppy/src/graph/graph_impl.rs