Skip to main content

Decode

Trait Decode 

Source
pub trait Decode {
    // Required method
    fn decode(&self, encoding: &Encoding) -> Result<Symbol>;
}
Expand description

Decode an already-sampled module grid or linear pattern into a Symbol.

This is the structural half of decoding — it operates on clean module data (Encoding) rather than pixels, and is what round-trip tests exercise against the encoder. Image sampling lives in Analyze.

Required Methods§

Source

fn decode(&self, encoding: &Encoding) -> Result<Symbol>

Decode module data into a symbol.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§