Function syntax_error::sources

source ·
pub fn sources<Id, S, I>(iter: I) -> impl Cache<Id>where
    Id: Display + Hash + PartialEq + Eq + Clone + 'static,
    I: IntoIterator<Item = (Id, S)>,
    S: AsRef<str>,
Expand description

Create a Cache from a collection of ID/strings, where each corresponds to a Source.