pub struct ActionSet(u8);Expand description
Which WriteActions a write-shaped applicability declaration covers.
A small closed set, so a bitset rather than a Vec — cheap to copy and
cheap to test membership in on the hot path.
Tuple Fields§
§0: u8Implementations§
Source§impl ActionSet
impl ActionSet
Sourcepub fn of(actions: &[WriteAction]) -> Self
pub fn of(actions: &[WriteAction]) -> Self
Only the given actions match. plan/policy.md takes no position on
what a delete means, so a policy that wants nothing to do with
deletes states that here, explicitly, rather than the core inferring
it from an empty diff.
Sourcepub fn contains(&self, action: WriteAction) -> bool
pub fn contains(&self, action: WriteAction) -> bool
Whether action is in this set.
Trait Implementations§
impl Copy for ActionSet
impl Eq for ActionSet
impl StructuralPartialEq for ActionSet
Auto Trait Implementations§
impl Freeze for ActionSet
impl RefUnwindSafe for ActionSet
impl Send for ActionSet
impl Sync for ActionSet
impl Unpin for ActionSet
impl UnsafeUnpin for ActionSet
impl UnwindSafe for ActionSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.