Skip to main content

NAMES

Constant NAMES 

Source
pub const NAMES: &[&str];
Expand description

Every encoder backend this crate has a name for, on any platform.

Platform-complete on purpose, where the candidate lists this module selects from are gated to what this build compiled. A caller offering Backend::Named as a choice needs the whole vocabulary, because a name it does not offer is a name nobody can ask for, and whether a given machine has that backend is answered by trying it rather than by the list.

The test below asserts every candidate compiled into this build appears here, so a rename fails on the platform that renamed it rather than silently leaving a name nothing answers to.