Skip to main content

WorldCodec

Trait WorldCodec 

Source
pub trait WorldCodec<W> {
    // Required methods
    fn compile(&self, home: &Path) -> Result<(W, Vec<ArtifactFidelity>)>;
    fn decompile(&self, world: &W, dest: &Path) -> Result<Vec<ArtifactFidelity>>;
}
Expand description

A harness’s operational home compiled into a world value and back.

Required Methods§

Source

fn compile(&self, home: &Path) -> Result<(W, Vec<ArtifactFidelity>)>

Read a home into the world value, naming what each artifact reached.

Source

fn decompile(&self, world: &W, dest: &Path) -> Result<Vec<ArtifactFidelity>>

Write the world value as this harness’s home, naming what each artifact reached; a write that would have to guess is an error naming its gate.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§