RecordEncoder

Trait RecordEncoder 

Source
pub trait RecordEncoder {
    type Value;

    const RECORD_SIZE: usize;

    // Required method
    fn encode(
        &self,
        buf: &mut [Self::Value],
        const_value: impl FnMut(u32) -> Self::Value,
    );
}
Expand description

This module defines the Record trait, which is used to encode and decode

Required Associated Constants§

Required Associated Types§

Required Methods§

Source

fn encode( &self, buf: &mut [Self::Value], const_value: impl FnMut(u32) -> Self::Value, )

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§