Skip to main content

vole_document/adapter/
mod.rs

1//! Format adapters.
2//!
3//! An adapter proposes a reconstruction hypothesis. It never overrides the
4//! byte authority: a hypothesis is only admitted after it reproduces the exact
5//! source bytes and wins the complete-cost court.
6
7pub mod opaque;
8pub mod pdf;
9
10/// The source-format class decision for an input.
11///
12/// File extensions are hints, never authority. In Phase 1 every input is
13/// preserved by the opaque adapter, which is the unconditional exact floor.
14#[derive(Debug, Clone, Copy, PartialEq, Eq)]
15pub enum FormatDecision {
16    /// Unstructured bytes; preserved exactly by the opaque adapter.
17    Opaque,
18}