musli_core

Derive Macro Decode

Source
#[derive(Decode)]
{
    // Attributes available to this derive:
    #[musli]
}
Expand description

Derive which automatically implements the Decode trait.

See the derives module for detailed documentation.

ยงExamples

use musli::Decode;

#[derive(Decode)]
struct MyType {
    data: [u8; 128],
}