Trait epserde::traits::copy_type::CopySelector

source ·
pub trait CopySelector: Sealed {
    const IS_ZERO_COPY: bool;
}
Expand description

Internal trait used to select whether a type is zero-copy or deep-copy.

It has only two implementations, Zero and Deep.

In the first case, the type can be serialized from memory and deserialized to memory as a sequence of bytes; in the second case, one has to deserialize the type field by field.

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementors§