pub trait BitSet:
Copy
+ BitOr<Output = Self>
+ BitOrAssign
+ BitAnd<Output = Self>
+ BitAndAssign
+ Not {
// Required method
fn nonzero(&self) -> bool;
// Provided method
fn contains(&self, other: &Self) -> bool { ... }
}
Available on crate feature
compiler
only.Expand description
Utility trait used to improve ergonomics of flag composition.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.