pub fn active_config(&'a self) -> Result<Option<(&'a Crate, &'a I18nConfig)>, I18nConfigError> {
        debug!("Resolving active config for {0}", self);
        match &self.i18n_config {
            Some(config) => {
                if let Some(gettext_config) = &config.gettext {
                    if gettext_config.extract_to_parent {
                        debug!("Resolving active config for {0}, extract_to_parent is true, so attempting to obtain parent config.", self);

                        if self.parent.is_none() {
                            return Err(I18nConfigError::NoParentCrate(
                                self.to_string(),
                                "the gettext extract_to_parent option is active".to_string(),
                            ));
                        }

                        return Ok(Some(self.parent_active_config()?.ok_or_else(|| {
                            I18nConfigError::NoParentI18nConfig(
                                self.to_string(),
                                "the gettext extract_to_parent option is active".to_string(),
                            )
                        })?));
                    }
                }

                Ok(Some((self, config)))
            }
            None => {
                debug!(
                    "{0} has no i18n config, attempting to obtain parent config instead.",
                    self
                );
                self.parent_active_config()
            }
        }
    }
/// Identify the config which should be used for this crate, and
/// the crate (either this crate or one of it's parents)
/// associated with that config.
Identify the config which should be used for this crate, and
the crate (either this crate or one of it's parents)
associated with that config.
Identify the config which should be used for this crate and the crate ( either this crate or one of it ' s parents ) associated with that config .
pub fn active_config(&'a self) -> Result<Option<(&'a Crate, &'a I18nConfig)>, I18nConfigError> {
        debug!("Resolving active config for {0}", self);
        match &self.i18n_config {
            Some(config) => {
                if let Some(gettext_config) = &config.gettext {
                    if gettext_config.extract_to_parent {
                        debug!("Resolving active config for {0}, extract_to_parent is true, so attempting to obtain parent config.", self);
                        if self.parent.is_none() {
                            return Err(I18nConfigError::NoParentCrate(
                                self.to_string(),
                                "the gettext extract_to_parent option is active".to_string(),
                            ));
                        }
                        return Ok(Some(self.parent_active_config()?.ok_or_else(|| {
                            I18nConfigError::NoParentI18nConfig(
                                self.to_string(),
                                "the gettext extract_to_parent option is active".to_string(),
                            )
                        })?));
                    }
                }
                Ok(Some((self, config)))
            }
            None => {
                debug!(
                    "{0} has no i18n config, attempting to obtain parent config instead.",
                    self
                );
                self.parent_active_config()
            }
        }
    }
pub fn active_config ( & ' a self ) -> Result < Option < ( & ' a Crate , & ' a I18nConfig ) > , I18nConfigError > { debug ! ( " " self ) ; match & self . i18n_config { Some ( config ) => { if let Some ( gettext_config ) = & config . gettext { if gettext_config . extract_to_parent { debug ! ( " " self ) ; if self . parent . is_none ( ) { return Err ( I18nConfigError :: NoParentCrate ( self . to_string ( ) , " " . to_string ( ) , ) ) ; } return Ok ( Some ( self . parent_active_config ( ) ? . ok_or_else ( | | { I18nConfigError :: NoParentI18nConfig ( self . to_string ( ) , " " . to_string ( ) , ) } ) ? ) ) ; } } Ok ( Some ( ( self , config ) ) ) } None => { debug ! ( " " self ) ; self . parent_active_config ( ) } } }
Identify the config which should be used for this crate, and
the crate (either this crate or one of it's parents)
associated with that config.
Identify the config which should be used for this crate and the crate ( either this crate or one of it ' s parents ) associated with that config .
&'a self
&'a self