Skip to main content

MetadataExtractor

Trait MetadataExtractor 

Source
pub trait MetadataExtractor {
    // Required method
    fn extract_metadata(&self) -> ImageMetadata;
}
Expand description

Trait for extracting unified metadata from format-specific structures.

Implementors MUST provide metadata extraction for their format. The compiler enforces implementation; incomplete data is handled via Option.

Required Methods§

Source

fn extract_metadata(&self) -> ImageMetadata

Extract unified metadata from the format-specific representation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§