Skip to main content

StaticManifest

Trait StaticManifest 

Source
pub trait StaticManifest: Boxed<'static> {
    // Required methods
    fn static_key_output_pairs(&self) -> &[(&'static str, &'static str)];
    fn static_chunks(
        &self,
    ) -> &[(&'static str, &'static ManifestChunk<'static>)];
}
Expand description

Trait for static/embedded manifests.

This trait is sort of internal, because it’s suitable only for embedded manifests, so use Manifest instead!

This trait automatically implements Manifest.

Required Methods§

Source

fn static_key_output_pairs(&self) -> &[(&'static str, &'static str)]

Get array of (key, output_filename) pairs.

Array must be sorted by key

Source

fn static_chunks(&self) -> &[(&'static str, &'static ManifestChunk<'static>)]

Get ManifestChunks as (output_filename, chunk) pairs.

Array must be sorted by output_filename

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§