File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 6262//! over `T: BitFlag`, you will be met with an error explaining that currently,
6363//! the only allowed trait bound for a `const fn` is `?Sized`. You will probably
6464//! want to write a separate implementation for `BitFlags<T, u8>`,
65- //! `BitFlags<T, u16>`, etc — probably generated by a macro.
66- //! This strategy is often used by `enumflags2` itself; to avoid clutter, only
67- //! one of the copies is shown in the documentation.
65+ //! `BitFlags<T, u16>`, etc — best accomplished by a simple macro.
66+ //!
67+ //! **Documentation considerations:** The strategy described above is often used
68+ //! by `enumflags2` itself. To avoid clutter in the auto-generated documentation,
69+ //! the implementations for widths other than `u8` are marked with `#[doc(hidden)]`.
6870//!
6971//! ## Customizing `Default`
7072//!
You can’t perform that action at this time.
0 commit comments