derive_try_from_bytes_struct

Function derive_try_from_bytes_struct 

Source
pub(crate) fn derive_try_from_bytes_struct(
    ast: &DeriveInput,
    strct: &DataStruct,
    top_level: Trait,
    zerocopy_crate: &Path,
) -> Result<TokenStream, Error>
Expand description

A struct is TryFromBytes if:

  • all fields are TryFromBytes