pub fn self_translate_with(
source: &str,
source_language: &str,
target_language: &str,
options: &SelfTranslationOptions,
) -> Result<SelfTranslation, SelfTranslationError>Expand description
self_translate with options.
From JavaScript or TypeScript into Rust, an item may call and read the
module’s other top-level items: each item is translated after the items
it names, with the signatures of those that translated bound, and the
Rust names them as its own translation does. import { a, b as c } from './m.mjs' becomes use crate::m::{a, b as c};, and the signatures
options.imports gives for ./m.mjs bind the imported names the same way.
§Errors
As self_translate.