Skip to main content

convert_with_context

Function convert_with_context 

Source
pub fn convert_with_context(
    input: &str,
    catalog: &Catalog,
    from: &Locale,
    to: &Locale,
    options: &ConvertOptions,
    context: &dyn ExpectedDomain,
) -> Result<Conversion, WorkshopError>
Expand description

The context-aware form of convert: context supplies the expected enum domains for argument positions the catalog does not document (e.g. a provider manifest chained with the catalog via crate::core::signatures::ChainedExpectedDomain).