fn make<'a, I>(components: I) -> Path
    where
        I: IntoIterator<Item = &'a CStr> + 'a,
    {
        let mut iter = components.into_iter();
        let first = iter.next();
        let mut result: Path = match first {
            None => Path::new(CString::new(".").unwrap()),
            Some(c) => Path::new(CString::from(c)),
        };
        for c in iter {
            result = Arc::new(result).push(CString::from(c))
        }
        result
    }
/// Builds a path from individual string components.
/// If the component list is empty, returns a path pointing to the current directory (".").
Builds a path from individual string components.
If the component list is empty, returns a path pointing to the current directory (".").
Builds a path from individual string components . If the component list is empty returns a path pointing to the current directory ( " . " ) .
fn make<'a, I>(components: I) -> Path
    where
        I: IntoIterator<Item = &'a CStr> + 'a,
    {
        let mut iter = components.into_iter();
        let first = iter.next();
        let mut result: Path = match first {
            None => Path::new(CString::new(".").unwrap()),
            Some(c) => Path::new(CString::from(c)),
        };
        for c in iter {
            result = Arc::new(result).push(CString::from(c))
        }
        result
    }
fn make < ' a , I > ( components : I ) -> Path where I : IntoIterator < Item = & ' a CStr > + ' a , { let mut iter = components . into_iter ( ) ; let first = iter . next ( ) ; let mut result : Path = match first { None => Path :: new ( CString :: new ( " " ) . unwrap ( ) ) , Some ( c ) => Path :: new ( CString :: from ( c ) ) , } ; for c in iter { result = Arc :: new ( result ) . push ( CString :: from ( c ) ) } result }
Builds a path from individual string components.
Builds a path from individual string components .
components
I
components
I