Trait slipstream::mask::Mask
source · pub trait Mask: Copy + Eq + Send + Sync + Sealed + Not + BitAnd + BitAndAssign + BitOr + BitOrAssign + BitXor + BitXorAssign + 'static {
const TRUE: Self;
const FALSE: Self;
// Provided methods
fn bool(self) -> bool { ... }
fn from_bool(v: bool) -> Self { ... }
}
Expand description
The trait implemented by all the mask types.
Note that this trait is not implementable by downstream crates, as code in the crate assumes (and relies for safety on the assumption) that the type can ever hold only the two values.
See the module documentation.