pub fn parse<P, D>(ucd_dir: P) -> Result<Vec<D>, Error>
where
    P: AsRef<Path>,
    D: UcdFile,
{
    let mut xs = vec![];
    for result in D::from_dir(ucd_dir)? {
        let x = result?;
        xs.push(x);
    }
    Ok(xs)
}
/// Parse a particular file in the UCD into a sequence of rows.
///
/// The given directory should be the directory to the UCD.
Parse a particular file in the UCD into a sequence of rows.
The given directory should be the directory to the UCD.
Parse a particular file in the UCD into a sequence of rows . The given directory should be the directory to the UCD .
pub fn parse<P, D>(ucd_dir: P) -> Result<Vec<D>, Error>
where
    P: AsRef<Path>,
    D: UcdFile,
{
    let mut xs = vec![];
    for result in D::from_dir(ucd_dir)? {
        let x = result?;
        xs.push(x);
    }
    Ok(xs)
}
pub fn parse < P , D > ( ucd_dir : P ) -> Result < Vec < D > , Error > where P : AsRef < Path > , D : UcdFile , { let mut xs = vec ! [ ] ; for result in D :: from_dir ( ucd_dir ) ? { let x = result ? ; xs . push ( x ) ; } Ok ( xs ) }
Parse a particular file in the UCD into a sequence of rows.
Parse a particular file in the UCD into a sequence of rows .
ucd_dir
P
ucd_dir
P