Trait StructFieldType

Source
pub trait StructFieldType:
    Clone
    + Sized
    + InitializerValidator {
    // Required method
    fn create_struct_type(
        v: Handle<Struct<Self, Unvalidated>>,
    ) -> StructType<Unvalidated>;
}

Required Methods§

Source

fn create_struct_type( v: Handle<Struct<Self, Unvalidated>>, ) -> StructType<Unvalidated>

convert a structure to a StructType

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.

Implementors§