pub enum Scope<T: Ord + Clone> {
All,
Only(BTreeSet<T>),
}Expand description
A set-valued authority axis: either unrestricted (All, the top of this
axis) or exactly the listed items.
Ordered so that Only(s) ⊑ All for every s, and
Only(a) ⊑ Only(b) ⟺ a ⊆ b. The meet is intersection, with All acting
as the identity.
Variants§
All
Unrestricted — authorizes every item. The ⊤ of this axis.
Only(BTreeSet<T>)
Authorizes exactly the items in the set (canonical: a BTreeSet).
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Scope<T>
impl<'de, T> Deserialize<'de> for Scope<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Eq + Ord + Clone> Eq for Scope<T>
impl<T: Ord + Clone> StructuralPartialEq for Scope<T>
Auto Trait Implementations§
impl<T> Freeze for Scope<T>
impl<T> RefUnwindSafe for Scope<T>where
T: RefUnwindSafe,
impl<T> Send for Scope<T>where
T: Send,
impl<T> Sync for Scope<T>where
T: Sync,
impl<T> Unpin for Scope<T>
impl<T> UnsafeUnpin for Scope<T>
impl<T> UnwindSafe for Scope<T>where
T: RefUnwindSafe,
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