Name Description Size
custom_bits_type.rs 2176
custom_derive.rs An example of implementing the `BitFlags` trait manually for a flags type. 667
fmt.rs An example of implementing Rust's standard formatting and parsing traits for flags types. 1175
macro_free.rs An example of implementing the `BitFlags` trait manually for a flags type. This example doesn't use any macros. 1534
serde.rs An example of implementing `serde::Serialize` and `serde::Deserialize`. The `#[serde(transparent)]` attribute is recommended to serialize directly to the underlying bits type without wrapping it in a `serde` newtype. 961