Trait Decode

Source
pub trait Decode: Sized {
    // Required method
    fn decode<R: Read>(reader: &mut R) -> Result<Self>;

    // Provided method
    fn decode_from_bytes(bytes: &[u8]) -> Result<Self> { ... }
}
Expand description

Hardware and language independent decoding. Uses the Reader pattern for efficient decoding.

Required Methods§

Source

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Reads and decodes a value from the given reader.

Provided Methods§

Source

fn decode_from_bytes(bytes: &[u8]) -> Result<Self>

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.

Implementations on Foreign Types§

Source§

impl Decode for Option<FriLogUpPartialProof<F>>

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Source§

impl Decode for usize

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Source§

impl Decode for ContinuationVmProof<SC>

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Source§

impl Decode for UserPublicValuesProof<DIGEST_SIZE, F>

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Source§

impl Decode for RootVmVerifierInput<SC>

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Source§

impl Decode for AdjacentOpenedValues<BinomialExtensionField<F, 4>>

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Source§

impl Decode for AirProofData<F, BinomialExtensionField<F, 4>>

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Source§

impl Decode for Proof<SC>

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Decode a proof using FRI as the PCS with BabyBearPoseidon2Config.

Source§

impl Decode for BinomialExtensionField<F, 4>

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Source§

impl Decode for InnerFriProof

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Source§

impl Decode for InnerQueryProof

Source§

impl Decode for [F; 8]

Source§

fn decode<R: Read>(reader: &mut R) -> Result<Self>

Implementors§

Source§

impl Decode for F