zerocopy_derive::ext

Trait DataExt

source
pub trait DataExt {
    // Required method
    fn field_types(&self) -> Vec<&Type>;
}

Required Methods§

source

fn field_types(&self) -> Vec<&Type>

Extract the types of all fields. For enums, extract the types of fields from each variant.

Implementations on Foreign Types§

source§

impl DataExt for Data

source§

impl DataExt for DataEnum

source§

impl DataExt for DataStruct

source§

impl DataExt for DataUnion

Implementors§