/// Creates an instance of the AutoDetectSourceLanguageConfig with source languages.
Creates an instance of the AutoDetectSourceLanguageConfig with source languages.
Creates an instance of the AutoDetectSourceLanguageConfig with source languages .
pub fn from_languages(languages: Vec<String>) -> Result<Self> {
        unsafe {
            let languages_str = languages.join(",");
            let c_languages_str = CString::new(languages_str)?;
            let mut handle: SPXAUTODETECTSOURCELANGCONFIGHANDLE =
                MaybeUninit::uninit().assume_init();
            let ret = create_auto_detect_source_lang_config_from_languages(
                &mut handle,
                c_languages_str.as_ptr(),
            );
            convert_err(ret, "AutoDetectSourceLanguageConfig::from_languages error")?;
            Ok(AutoDetectSourceLanguageConfig::from_handle(handle)?)
        }
    }
pub fn from_languages ( languages : Vec < String > ) -> Result < Self > { unsafe { let languages_str = languages . join ( " " ) ; let c_languages_str = CString :: new ( languages_str ) ? ; let mut handle : SPXAUTODETECTSOURCELANGCONFIGHANDLE = MaybeUninit :: uninit ( ) . assume_init ( ) ; let ret = create_auto_detect_source_lang_config_from_languages ( & mut handle , c_languages_str . as_ptr ( ) , ) ; convert_err ( ret , " " ) ? ; Ok ( AutoDetectSourceLanguageConfig :: from_handle ( handle ) ? ) } }
Creates an instance of the AutoDetectSourceLanguageConfig with source languages.
Creates an instance of the AutoDetectSourceLanguageConfig with source languages .
languages
Vec<String>