Trait mesh_protobuf::table::StructMetadata

source ·
pub unsafe trait StructMetadata {
    const NUMBERS: &'static [u32];
    const OFFSETS: &'static [usize];
}
Expand description

Trait for types that can be encoded using TableEncoder.

§Safety

The implementor must ensure that this metadata describes all fields within Self, and that OFFSETS are the correct byte offsets to the fields.

Required Associated Constants§

source

const NUMBERS: &'static [u32]

The field numbers for each field.

source

const OFFSETS: &'static [usize]

The byte offset to each field within the struct.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> StructMetadata for ()

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0> StructMetadata for (E0,)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1> StructMetadata for (E0, E1)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1, E2> StructMetadata for (E0, E1, E2)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1, E2, E3> StructMetadata for (E0, E1, E2, E3)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1, E2, E3, E4> StructMetadata for (E0, E1, E2, E3, E4)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1, E2, E3, E4, E5> StructMetadata for (E0, E1, E2, E3, E4, E5)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1, E2, E3, E4, E5, E6> StructMetadata for (E0, E1, E2, E3, E4, E5, E6)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<T> StructMetadata for Range<T>

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

Implementors§

source§

impl StructMetadata for ProtobufAny

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl StructMetadata for Timestamp

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _