#[derive(ToBytes)]
{
    // Attributes available to this derive:
    #[neli]
}
Expand description

Derives the neli ToBytes trait for a struct or enum.

Acceptable struct attribute is:

  • #[neli(to_bytes_bound = "T: MyTrait")] which will generate a trait bound in the impl for the specified type parameter.
  • #[neli(padding)] which will add special handling for padding for this struct.

Implicit type parameter bound: ToBytes.