fn convert_to_proper(&self) -> Result<BonesDirective, String> {
        // Parse the conditions `HashMap`
        let mut parsed_conditions: HashMap<BonesOperator, Option<BonesDirective>> = HashMap::new();
        for (raw_operator, raw_directive) in &self.1 {
            let operator = BonesOperator::parse_str(raw_operator)?;
            // Parse the directive recursively
            // We need to use a full `match` statement for `?`
            let directive = match raw_directive {
                Some(raw_directive) => Some(raw_directive.convert_to_proper()?),
                None => None,
            };
            parsed_conditions.insert(operator, directive);
        }

        Ok(
            // We don't need to do any parsing on the command name, just the conditions
            BonesDirective(self.0.to_string(), parsed_conditions),
        )
    }
// This converts to a `BonesDirective` by parsing the operator strings into full operators
This converts to a `BonesDirective` by parsing the operator strings into full operators
This converts to a ` BonesDirective ` by parsing the operator strings into full operators
fn convert_to_proper(&self) -> Result<BonesDirective, String> {
        // Parse the conditions `HashMap`
        let mut parsed_conditions: HashMap<BonesOperator, Option<BonesDirective>> = HashMap::new();
        for (raw_operator, raw_directive) in &self.1 {
            let operator = BonesOperator::parse_str(raw_operator)?;
            // Parse the directive recursively
            // We need to use a full `match` statement for `?`
            let directive = match raw_directive {
                Some(raw_directive) => Some(raw_directive.convert_to_proper()?),
                None => None,
            };
            parsed_conditions.insert(operator, directive);
        }
        Ok(
            // We don't need to do any parsing on the command name, just the conditions
            BonesDirective(self.0.to_string(), parsed_conditions),
        )
    }
fn convert_to_proper ( & self ) -> Result < BonesDirective , String > { // Parse the conditions `HashMap` let mut parsed_conditions : HashMap < BonesOperator , Option < BonesDirective > > = HashMap :: new ( ) ; for ( raw_operator , raw_directive ) in & self . 1 { let operator = BonesOperator :: parse_str ( raw_operator ) ? ; // Parse the directive recursively // We need to use a full `match` statement for `?` let directive = match raw_directive { Some ( raw_directive ) => Some ( raw_directive . convert_to_proper ( ) ? ) , None => None , } ; parsed_conditions . insert ( operator , directive ) ; } Ok ( // We don't need to do any parsing on the command name, just the conditions BonesDirective ( self . 0 . to_string ( ) , parsed_conditions ) , ) }
This converts to a `BonesDirective` by parsing the operator strings into full operators
This converts to a ` BonesDirective ` by parsing the operator strings into full operators
&self