DynamicHasFieldMaybeNewtype

Trait DynamicHasFieldMaybeNewtype 

Source
pub trait DynamicHasFieldMaybeNewtype: DynamicHasField {
    type ReaderType;

    // Required method
    fn parse(read: Self::ReaderType) -> Self::Inner;
}
Available on crate feature resolve-path only.
Expand description

DynamicHasField for types that may or may not have a newtype wrapper around their field type.

Required Associated Types§

Source

type ReaderType

The reader type, which may be a newtype wrapper around DynamicHasField::Inner, or the DynamicHasField::Inner itself if no newtype is supplied to the #[derive(DirStructure)] macro.

Required Methods§

Source

fn parse(read: Self::ReaderType) -> Self::Inner

Parses the read type into the inner type.

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§