pub trait GgufParserPort: Send + Sync {
// Required methods
fn parse(&self, file_path: &Path) -> Result<GgufMetadata, GgufParseError>;
fn detect_capabilities(&self, metadata: &GgufMetadata) -> GgufCapabilities;
}Expand description
Port for parsing GGUF file metadata.
This trait abstracts GGUF parsing so that different implementations can be injected (full native parser, stub for tests, etc.).
§Port Signature Rules
- All types in signatures are from
gglib-core(domain types) - No
gglib-ggufsymbols appear in signatures - Implementations live in
gglib-ggufand implement this trait