/// Collects all the environment names, watching for duplicates.
Collects all the environment names, watching for duplicates.
Collects all the environment names watching for duplicates .
fn collect_environment_names(&mut self, envs: &'a [fsys::EnvironmentDecl]) {
        for env in envs {
            if let Some(name) = env.name.as_ref() {
                if !self.all_environment_names.insert(name) {
                    self.errors.push(Error::duplicate_field("EnvironmentDecl", "name", name));
                }
            }
        }
    }
fn collect_environment_names ( & mut self , envs : & ' a [ fsys :: EnvironmentDecl ] ) { for env in envs { if let Some ( name ) = env . name . as_ref ( ) { if ! self . all_environment_names . insert ( name ) { self . errors . push ( Error :: duplicate_field ( " " , " " , name ) ) ; } } } }
Collects all the environment names, watching for duplicates.
Collects all the environment names watching for duplicates .
&mut self
envs
&'a [fsys::EnvironmentDecl]