Trait StructMetadata

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§

const NUMBERS: &'static [u32]

The field numbers for each field.

const OFFSETS: &'static [usize]

The byte offset to each field within the struct.

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§

§

impl<'a> StructMetadata for ()

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

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

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

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

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

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

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

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

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

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

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

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

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

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

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl<T> StructMetadata for Range<T>

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

Implementors§

§

impl StructMetadata for RemoteError

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl StructMetadata for WritePipe

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl StructMetadata for Address

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl StructMetadata for CancelContext

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl StructMetadata for NodeId

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl StructMetadata for PortId

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl StructMetadata for Uuid

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl StructMetadata for ProtobufAny

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl StructMetadata for Timestamp

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl<I, R> StructMetadata for Rpc<I, R>
where I: 'static + MeshField + Send, R: 'static + MeshField + Send,

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl<T> StructMetadata for Cell<T>
where T: 'static + MeshField + Send + Sync + Clone,

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]

§

impl<T> StructMetadata for CellUpdater<T>

§

const NUMBERS: &'static [u32]

§

const OFFSETS: &'static [usize]