endian_trait_derive

Crates.ioendian_trait_derive
lib.rsendian_trait_derive
version0.6.0
sourcesrc
created_at2017-08-20 01:38:17.631475
updated_at2018-06-25 20:40:57.592423
descriptionA custom derive for the Endian trait
homepage
repositoryhttps://gitlab.com/myrrlyn/endian_trait
max_upload_size
id28212
size15,137
Alexander Payne (myrrlyn)

documentation

README

Endian Trait Derivation

Crate Docs Gitlab CI Status Travis CI Status

This provides a custom derive for the Endian trait on structs. It can operate on normal braced structs, tuple structs, and unit structs, as well as enums with an integer representation and no data.

Rust currently does not permit procedural macro tags to be placed on unions, so this macro cannot support them.

This crate cannot be used standalone, as it generates code referring to the Endian trait, which only exists in the endian_trait crate. That crate re-exports the procedural macro defined here.

[dependencies]
endian_trait = "0.5"
#[macro_use]
extern crate endian_trait;
Commit count: 33

cargo fmt