pub type PrimitiveTypeShape = pstd_type_field_t;Expand description
The shape of a primitive. This is used to check if the Rust type is a supported protocol primitive type. Also, it provides the data so that we can check the protocol primitive is expected type shape.
Aliased Type§
#[repr(C)]pub struct PrimitiveTypeShape {
pub offset: u32,
pub size: u32,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
pub __bindgen_padding_0: [u8; 3],
}Fields§
§offset: u32< The offeset of this field
size: u32< The size of memory region for this field
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>§__bindgen_padding_0: [u8; 3]Trait Implementations§
Source§impl Default for PrimitiveTypeShape
impl Default for PrimitiveTypeShape
Source§fn default() -> PrimitiveTypeShape
fn default() -> PrimitiveTypeShape
Returns the “default value” for a type. Read more