//! An example of implementing Rust's standard formatting and parsing traits for flags types.
use core::{fmt, str};
bitflags::bitflags! { // You can `#[derive]` the `Debug` trait, but implementing it manually // can produce output like `A | B` instead of `Flags(A | B)`. // #[derive(Debug)] #[derive(PartialEq, Eq)] pubstruct Flags: u32 { const A = 1; const B = 2; const C = 4; const D = 8;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.