Trait mesh_protobuf::table::encode::StructEncodeMetadata

source ·
pub unsafe trait StructEncodeMetadata<R>: StructMetadata {
    const ENCODERS: &'static [ErasedEncoderEntry];
}
Expand description

Metadata for encoding a struct.

§Safety

The implementor must ensure that the ENCODERS are correct and complete for Self and R.

Required Associated Constants§

source

const ENCODERS: &'static [ErasedEncoderEntry]

The list of encoder vtables.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<R> StructEncodeMetadata<R> for ()

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _

source§

impl<R, E0> StructEncodeMetadata<R> for (E0,)
where E0: DefaultEncoding, E0::Encoding: FieldEncode<E0, R>,

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _

source§

impl<R, E0, E1> StructEncodeMetadata<R> for (E0, E1)
where E0: DefaultEncoding, E1: DefaultEncoding, E0::Encoding: FieldEncode<E0, R>, E1::Encoding: FieldEncode<E1, R>,

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _

source§

impl<R, E0, E1, E2> StructEncodeMetadata<R> for (E0, E1, E2)
where E0: DefaultEncoding, E1: DefaultEncoding, E2: DefaultEncoding, E0::Encoding: FieldEncode<E0, R>, E1::Encoding: FieldEncode<E1, R>, E2::Encoding: FieldEncode<E2, R>,

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _

source§

impl<R, E0, E1, E2, E3> StructEncodeMetadata<R> for (E0, E1, E2, E3)

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _

source§

impl<R, E0, E1, E2, E3, E4> StructEncodeMetadata<R> for (E0, E1, E2, E3, E4)

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _

source§

impl<R, E0, E1, E2, E3, E4, E5> StructEncodeMetadata<R> for (E0, E1, E2, E3, E4, E5)

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _

source§

impl<R, E0, E1, E2, E3, E4, E5, E6> StructEncodeMetadata<R> for (E0, E1, E2, E3, E4, E5, E6)

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _

source§

impl<T, AnyR: 'static> StructEncodeMetadata<AnyR> for Range<T>
where T: DefaultEncoding, T::Encoding: FieldEncode<T, AnyR>,

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _

Implementors§

source§

impl<AnyR: 'static> StructEncodeMetadata<AnyR> for ProtobufAny

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _

source§

impl<AnyR: 'static> StructEncodeMetadata<AnyR> for Timestamp

source§

const ENCODERS: &'static [ErasedEncoderEntry] = _