Skip to main content

DsdSourceExtensions

Trait DsdSourceExtensions 

Source
pub trait DsdSourceExtensions {
    const EXTENSIONS: &'static [&'static str];
}
Expand description

File extensions (lowercase, no leading dot) recognized as this source’s container format. Kept separate from DsdSource since associated consts aren’t dyn-compatible: implementers declare this alongside DsdSource, and callers reference it on the concrete type (e.g. DsfFile::EXTENSIONS) to build a format dispatch table without a reader needing to hardcode each format’s extensions itself.

Required Associated Constants§

Source

const EXTENSIONS: &'static [&'static str]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§