pub fn members_by_names<B>(
        &self,
        names: impl IntoIterator<Item = impl AsRef<str>>,
    ) -> Result<B, Error>
    where
        B: FromIterator<PackageMetadata<'g>>,
    {
        names
            .into_iter()
            .map(|name| self.member_by_name(name.as_ref()))
            .collect()
    }
Maps the given names 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