pub fn add_source<I, S>(&mut self, id: I, source: S)
    where
        I: Into<String>,
        S: Source,
    {
        self.sources
            .insert(id.into(), Arc::new(source) as Arc<Source>);
    }
/// Add a source to the `Loader`, given an id and the source.
Add a source to the `Loader`, given an id and the source.
Add a source to the ` Loader ` given an id and the source .
pub fn add_source<I, S>(&mut self, id: I, source: S)
    where
        I: Into<String>,
        S: Source,
    {
        self.sources
            .insert(id.into(), Arc::new(source) as Arc<Source>);
    }
pub fn add_source < I , S > ( & mut self , id : I , source : S ) where I : Into < String > , S : Source , { self . sources . insert ( id . into ( ) , Arc :: new ( source ) as Arc < Source > ) ; }
Add a source to the `Loader`, given an id and the source.
Add a source to the ` Loader ` given an id and the source .
&mut self
id
I
source
S
&mut self
id
I
source
S