pub fn derive_altrep_raw(input: DeriveInput) -> Result<TokenStream>Expand description
Derive macro entry point for AltrepRaw.
Auto-implements AltrepLen and AltRawData for a struct with a length field.
The elt() method returns self.{elt_field} as u8 if #[altrep(elt = "...")]
is specified, or 0u8 by default.
Supports #[altrep(dataptr)] for direct u8 data pointer access and
#[altrep(subset)] for Extract_subset.