diff --git a/src/param.rs b/src/param.rs index 1244a2ab..b2e7c602 100644 --- a/src/param.rs +++ b/src/param.rs @@ -2,6 +2,7 @@ use std; use std::ops::Index; use std::path::PathBuf; use std::str::FromStr; +use std::slice::Iter; use std::borrow::Cow; use smallvec::SmallVec; @@ -77,6 +78,11 @@ impl<'a> Params<'a> { T::from_param("") } } + + /// Return iterator to items in paramter container + pub fn iter(&self) -> Iter<(Cow<'a, str>, Cow<'a, str>)> { + self.0.iter() + } } impl<'a, 'b, 'c: 'a> Index<&'b str> for &'c Params<'a> {