Skip to main content

check_format_options

Function check_format_options 

Source
pub fn check_format_options(
    opts: &ExtractOptions,
    known: &[FormatOptionKey],
) -> Result<(), Error>
Expand description

Checks every format_options entry against the keys the filters declare: an unknown key or a value of the wrong kind is an Error::FormatOption. The bilingua facade calls this with every filter’s keys, so an option meant for another format (the adapter sends docx.translate_comments with every file) is accepted.