/// Parses n `RelativeMoniker` from a string.
///
/// Input strings should be of the format
/// `.(\<name>(:<collection>)?:<instance_id>)*(/<name>(:<collection>)?:<instance_id>)*`, such
/// as `.\foo:42/bar:12/baz:54` or `./biz:foo:42`.
Parses n `RelativeMoniker` from a string.
Parses n ` RelativeMoniker ` from a string .
fn parse(rep: &str) -> Result<Self, MonikerError> {
        let (up_path, down_path) = Self::parse_up_down_paths(rep)?;
        let up_path = up_path
            .iter()
            .map(Self::Part::parse)
            .collect::<Result<Vec<Self::Part>, MonikerError>>()?;
        let down_path = down_path
            .iter()
            .map(Self::Part::parse)
            .collect::<Result<Vec<Self::Part>, MonikerError>>()?;
        Ok(Self::new(up_path, down_path))
    }
fn parse ( rep : & str ) -> Result < Self , MonikerError > { let ( up_path , down_path ) = Self :: parse_up_down_paths ( rep ) ? ; let up_path = up_path . iter ( ) . map ( Self :: Part :: parse ) . collect :: < Result < Vec < Self :: Part > , MonikerError > > ( ) ? ; let down_path = down_path . iter ( ) . map ( Self :: Part :: parse ) . collect :: < Result < Vec < Self :: Part > , MonikerError > > ( ) ? ; Ok ( Self :: new ( up_path , down_path ) ) }
Parses n `RelativeMoniker` from a string.
Parses n ` RelativeMoniker ` from a string .
rep
&str