Skip to main content

FileFormat

Trait FileFormat 

Source
pub trait FileFormat: Serialize + for<'a> Deserialize<'a> {
    const FORMAT: [u8; 8];
    const EXTENSION: &'static str;
    const VERSION: (u16, u16);
    const COMPRESSION: Compression;
}
Expand description

Trait for structures that can be serialized to and deserialized from files.

Required Associated Constants§

Source

const FORMAT: [u8; 8]

Source

const EXTENSION: &'static str

Source

const VERSION: (u16, u16)

Source

const COMPRESSION: Compression

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl FileFormat for NoirProof

Source§

const FORMAT: [u8; 8]

Source§

const EXTENSION: &'static str = "np"

Source§

const VERSION: (u16, u16)

Source§

const COMPRESSION: Compression = Compression::Zstd

Source§

impl FileFormat for NoirProofScheme

Source§

const FORMAT: [u8; 8]

Source§

const EXTENSION: &'static str = "nps"

Source§

const VERSION: (u16, u16)

Source§

const COMPRESSION: Compression = Compression::Zstd

Source§

impl FileFormat for Prover

Source§

const FORMAT: [u8; 8]

Source§

const EXTENSION: &'static str = "pkp"

Source§

const VERSION: (u16, u16)

Source§

const COMPRESSION: Compression = Compression::Xz

Source§

impl FileFormat for Verifier

Source§

const FORMAT: [u8; 8]

Source§

const EXTENSION: &'static str = "pkv"

Source§

const VERSION: (u16, u16)

Source§

const COMPRESSION: Compression = Compression::Zstd