#[derive(Clone, Copy)]
pub(super) enum ScopeFlag {
Invalid,
Enqueued,
Active,
ComposedOnce,
PendingRecompose,
Recomposing,
ForceReuse,
ForceRecompose,
Derivation,
UnknownInvalidationSource,
Paused,
Pending,
LifetimeOwner,
}
impl ScopeFlag {
pub(super) const fn bit(self) -> u16 {
match self {
Self::Invalid => 1,
Self::Enqueued => 1 << 1,
Self::Active => 1 << 2,
Self::ComposedOnce => 1 << 3,
Self::PendingRecompose => 1 << 4,
Self::Recomposing => 1 << 5,
Self::ForceReuse => 1 << 6,
Self::ForceRecompose => 1 << 7,
Self::Derivation => 1 << 8,
Self::UnknownInvalidationSource => 1 << 9,
Self::Paused => 1 << 10,
Self::Pending => 1 << 11,
Self::LifetimeOwner => 1 << 12,
}
}
}