Skip to main content

WcharPosition

Type Alias WcharPosition 

Source
pub type WcharPosition = WirePosition;
Expand description

The name the position enumeration shipped under, when it reached only wchar.

The alias stays because the argument for the rename is in the rename, not in breaking every caller in one commit. Its layout-crate half is aliased the same way.

Aliased Type§

pub enum WcharPosition {
    Member,
    Element,
    Sentinel,
    ExtendedMarker,
}

Variants§

§

Member

A member of a structure, a union branch, or the whole value.

For PidFlagPolicy this is a member’s own parameter id in a PL_CDR1 list.

§

Element

An element of an array or a sequence.

§

Sentinel

The PID_LIST_END that closes a PL_CDR1 parameter list.

Read by PidFlagPolicy, which carries the measurement that makes it a position rather than a property of the list.

§

ExtendedMarker

The PID_EXTENDED marker that opens a parameter’s extended header.

Read by PidFlagPolicy. It was a field of zerodds_ast_layout::PlCdr1HeaderPolicy on the argument that the marker exists only under the always-extended form; it does not — a member id above PID_SHORT_MAX_ID reaches it under the specification’s form too, and RTI sets the bit there.