We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c70b0f commit e1c8b64Copy full SHA for e1c8b64
src/lib.rs
@@ -188,6 +188,11 @@ pub trait BitFlag: Copy + Clone + 'static + _internal::RawBitFlags {
188
pub mod _internal {
189
/// A trait automatically implemented by `#[bitflags]` to make the enum
190
/// a valid type parameter for `BitFlags<T>`.
191
+ ///
192
+ /// # Safety
193
194
+ /// The values should reflect reality, like they do if the implementation
195
+ /// is generated by the procmacro.
196
pub unsafe trait RawBitFlags: Copy + Clone + 'static {
197
/// The underlying integer type.
198
type Numeric: BitFlagNum;
0 commit comments