pub struct Or<P, R>(/* private fields */)
where
P: SatisfiesPrivilege + Clone,
R: SatisfiesPrivilege + Clone;Expand description
A combinator that requires at least one privilege to be satisfied.
Trait Implementations§
Source§impl<P, R> SatisfiesPrivilege for Or<P, R>
impl<P, R> SatisfiesPrivilege for Or<P, R>
fn is_satisfied(privileges: &[Privilege]) -> bool
Auto Trait Implementations§
impl<P, R> Freeze for Or<P, R>
impl<P, R> RefUnwindSafe for Or<P, R>
impl<P, R> Send for Or<P, R>
impl<P, R> Sync for Or<P, R>
impl<P, R> Unpin for Or<P, R>
impl<P, R> UnwindSafe for Or<P, R>
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