fn available_languages(&self) -> Result<Vec<unic_langid::LanguageIdentifier>, I18nEmbedError> {
        let mut available_languages = std::collections::HashSet::new();
        for weak_listener in &self.listeners {
            if let Some(localizer) = weak_listener.upgrade() {
                localizer
                    .available_languages()?
                    .iter()
                    .for_each(|language| {
                        available_languages.insert(language.clone());
                    })
            }
        }

        Ok(available_languages.into_iter().collect())
    }
/// The languages reported to be available in the
/// listener [Localizer](Localizer)s.
The languages reported to be available in the
listener [Localizer](Localizer)s.
The languages reported to be available in the listener [ Localizer ] ( Localizer ) s .
fn available_languages(&self) -> Result<Vec<unic_langid::LanguageIdentifier>, I18nEmbedError> {
        let mut available_languages = std::collections::HashSet::new();
        for weak_listener in &self.listeners {
            if let Some(localizer) = weak_listener.upgrade() {
                localizer
                    .available_languages()?
                    .iter()
                    .for_each(|language| {
                        available_languages.insert(language.clone());
                    })
            }
        }
        Ok(available_languages.into_iter().collect())
    }
fn available_languages ( & self ) -> Result < Vec < unic_langid :: LanguageIdentifier > , I18nEmbedError > { let mut available_languages = std :: collections :: HashSet :: new ( ) ; for weak_listener in & self . listeners { if let Some ( localizer ) = weak_listener . upgrade ( ) { localizer . available_languages ( ) ? . iter ( ) . for_each ( | language | { available_languages . insert ( language . clone ( ) ) ; } ) } } Ok ( available_languages . into_iter ( ) . collect ( ) ) }
The languages reported to be available in the
listener [Localizer](Localizer)s.
The languages reported to be available in the listener [ Localizer ] ( Localizer ) s .
&self
&self