fn path(&self) -> String {
        // Ignore the leading element as that's just a placeholder.
        let components: Vec<String> = self.path[1..]
            .iter()
            .map(|(c, _)| match c {
                PathSegment::Literal(s) => s.clone(),
                PathSegment::Varname(s) => format!("{{{}}}", s),
            })
            .collect();

        // Prepend "/" to the "/"-delimited path.
        format!("/{}", components.join("/"))
    }
/**
     * Produce a human-readable path from the current vector of path segments.
     */
Produce a human-readable path from the current vector of path segments.
Produce a human - readable path from the current vector of path segments .
fn path(&self) -> String {
        // Ignore the leading element as that's just a placeholder.
        let components: Vec<String> = self.path[1..]
            .iter()
            .map(|(c, _)| match c {
                PathSegment::Literal(s) => s.clone(),
                PathSegment::Varname(s) => format!("{{{}}}", s),
            })
            .collect();
        // Prepend "/" to the "/"-delimited path.
        format!("/{}", components.join("/"))
    }
fn path ( & self ) -> String { // Ignore the leading element as that's just a placeholder. let components : Vec < String > = self . path [ 1 .. ] . iter ( ) . map ( | ( c , _ ) | match c { PathSegment :: Literal ( s ) => s . clone ( ) , PathSegment :: Varname ( s ) => format ! ( " " s ) , } ) . collect ( ) ; // Prepend "/" to the "/"-delimited path. format ! ( " " components join ( " " ) ) }
Produce a human-readable path from the current vector of path segments.
Produce a human - readable path from the current vector of path segments .
&self
&self