pub fn from_language_configs(languages: Vec<SourceLanguageConfig>) -> Result<Self> {
        unsafe {
            let mut first = true;
            let mut handle: SPXAUTODETECTSOURCELANGCONFIGHANDLE =
                MaybeUninit::uninit().assume_init();
            for language in &languages {
                let ret;
                if first == true {
                    first = false;
                    ret = create_auto_detect_source_lang_config_from_source_lang_config(
                        &mut handle,
                        language.handle.inner(),
                    );
                } else {
                    ret = add_source_lang_config_to_auto_detect_source_lang_config(
                        handle,
                        language.handle.inner(),
                    );
                }
                convert_err(
                    ret,
                    "AutoDetectSourceLanguageConfig::from_language_configs error",
                )?;
            }

            Ok(AutoDetectSourceLanguageConfig::from_handle(handle)?)
        }
    }
/// Creates an instance of the AutoDetectSourceLanguageConfig with a list of source language config
Creates an instance of the AutoDetectSourceLanguageConfig with a list of source language config
Creates an instance of the AutoDetectSourceLanguageConfig with a list of source language config
pub fn from_language_configs(languages: Vec<SourceLanguageConfig>) -> Result<Self> {
        unsafe {
            let mut first = true;
            let mut handle: SPXAUTODETECTSOURCELANGCONFIGHANDLE =
                MaybeUninit::uninit().assume_init();
            for language in &languages {
                let ret;
                if first == true {
                    first = false;
                    ret = create_auto_detect_source_lang_config_from_source_lang_config(
                        &mut handle,
                        language.handle.inner(),
                    );
                } else {
                    ret = add_source_lang_config_to_auto_detect_source_lang_config(
                        handle,
                        language.handle.inner(),
                    );
                }
                convert_err(
                    ret,
                    "AutoDetectSourceLanguageConfig::from_language_configs error",
                )?;
            }
            Ok(AutoDetectSourceLanguageConfig::from_handle(handle)?)
        }
    }
pub fn from_language_configs ( languages : Vec < SourceLanguageConfig > ) -> Result < Self > { unsafe { let mut first = true ; let mut handle : SPXAUTODETECTSOURCELANGCONFIGHANDLE = MaybeUninit :: uninit ( ) . assume_init ( ) ; for language in & languages { let ret ; if first == true { first = false ; ret = create_auto_detect_source_lang_config_from_source_lang_config ( & mut handle , language . handle . inner ( ) , ) ; } else { ret = add_source_lang_config_to_auto_detect_source_lang_config ( handle , language . handle . inner ( ) , ) ; } convert_err ( ret , " " , ) ? ; } Ok ( AutoDetectSourceLanguageConfig :: from_handle ( handle ) ? ) } }
Creates an instance of the AutoDetectSourceLanguageConfig with a list of source language config
Creates an instance of the AutoDetectSourceLanguageConfig with a list of source language config
languages
Vec<SourceLanguageConfig>
languages
Vec<SourceLanguageConfig>