fn parse_str(input: &str) -> Result<InstancedAbsoluteMoniker, MonikerError> {
        if input.chars().nth(0) != Some('/') {
            return Err(MonikerError::invalid_moniker(input));
        }
        if input == "/" {
            return Ok(InstancedAbsoluteMoniker::root());
        }
        let path = input[1..]
            .split('/')
            .map(InstancedChildMoniker::parse)
            .collect::<Result<_, MonikerError>>()?;
        Ok(InstancedAbsoluteMoniker::new(path))
    }
/// Parse the given string as an instanced absolute moniker. The string should b a '/'
/// delimited series of child monikers *with* instance identifiers, e.g. "/", or
/// "/name1:0/name2:0" or "/name1:collection1:0".
Parse the given string as an instanced absolute moniker. The string should b a '/'
delimited series of child monikers *with* instance identifiers, e.g.
Parse the given string as an instanced absolute moniker . The string should b a ' / ' delimited series of child monikers * with * instance identifiers e . g .
fn parse_str(input: &str) -> Result<InstancedAbsoluteMoniker, MonikerError> {
        if input.chars().nth(0) != Some('/') {
            return Err(MonikerError::invalid_moniker(input));
        }
        if input == "/" {
            return Ok(InstancedAbsoluteMoniker::root());
        }
        let path = input[1..]
            .split('/')
            .map(InstancedChildMoniker::parse)
            .collect::<Result<_, MonikerError>>()?;
        Ok(InstancedAbsoluteMoniker::new(path))
    }
fn parse_str ( input : & str ) -> Result < InstancedAbsoluteMoniker , MonikerError > { if input . chars ( ) . nth ( 0 ) != Some ( '/' ) { return Err ( MonikerError :: invalid_moniker ( input ) ) ; } if input == " " { return Ok ( InstancedAbsoluteMoniker :: root ( ) ) ; } let path = input [ 1 .. ] . split ( '/' ) . map ( InstancedChildMoniker :: parse ) . collect :: < Result < _ , MonikerError > > ( ) ? ; Ok ( InstancedAbsoluteMoniker :: new ( path ) ) }
Parse the given string as an instanced absolute moniker.
Parse the given string as an instanced absolute moniker .
input
&str
input
&str