pub fn new<I>(iterable: I, options: &Options) -> Result<Self, Traced<ExtensionRegistryError>> where
        I: IntoIterator<Item=Box<Extension>>
    {
        let mut builder = Builder::default();

        for mut ext in iterable {
            if !builder.staged.ext_names.insert(ext.name().to_string())  {
                return traced_err!(ExtensionRegistryError::DuplicateExtension {
                    name: ext.name().to_string()
                })
            };

            try!(ext.init(&mut builder, options));
        }

        Ok(builder.into())
    }
/// Initialize new extension registry instance.
Initialize new extension registry instance.
Initialize new extension registry instance .
pub fn new<I>(iterable: I, options: &Options) -> Result<Self, Traced<ExtensionRegistryError>> where
        I: IntoIterator<Item=Box<Extension>>
    {
        let mut builder = Builder::default();
        for mut ext in iterable {
            if !builder.staged.ext_names.insert(ext.name().to_string())  {
                return traced_err!(ExtensionRegistryError::DuplicateExtension {
                    name: ext.name().to_string()
                })
            };
            try!(ext.init(&mut builder, options));
        }
        Ok(builder.into())
    }
pub fn new < I > ( iterable : I , options : & Options ) -> Result < Self , Traced < ExtensionRegistryError > > where I : IntoIterator < Item = Box < Extension > > { let mut builder = Builder :: default ( ) ; for mut ext in iterable { if ! builder . staged . ext_names . insert ( ext . name ( ) . to_string ( ) ) { return traced_err ! ( ExtensionRegistryError DuplicateExtension { name ext name ( ) to_string ( ) } ) } ; try ! ( ext init ( mut builder options ) ) ; } Ok ( builder . into ( ) ) }
Initialize new extension registry instance.
Initialize new extension registry instance .
iterable
I
options
&Options
iterable
I
options
&Options