pub struct FirstApplicable;Expand description
The first applicable grant, in source order, decides.
“Source order” is the order of crate::GrantSource::visit. A listing reads the grants through
crate::GrantIndex, which must keep that relative order.
Trait Implementations§
Source§impl Clone for FirstApplicable
impl Clone for FirstApplicable
impl Copy for FirstApplicable
Source§impl Debug for FirstApplicable
impl Debug for FirstApplicable
Source§impl Default for FirstApplicable
impl Default for FirstApplicable
Source§impl Strategy for FirstApplicable
impl Strategy for FirstApplicable
Source§fn native(&self) -> Option<NativeStrategy>
fn native(&self) -> Option<NativeStrategy>
Which strategy of this crate this is, if it is one. A listing reproduces only the strategies
that answer here; any other is left as a residue to check row by row, whatever its
Strategy::name says. The default is None: a strategy of yours, or a wrapper around one
of these, stays residue unless it answers on purpose.fn name(&self) -> &'static str
fn combine(&self, candidates: &[Candidate]) -> Option<usize>
Auto Trait Implementations§
impl Forget for FirstApplicable
impl Freeze for FirstApplicable
impl Move for FirstApplicable
impl RefUnwindSafe for FirstApplicable
impl Send for FirstApplicable
impl Sync for FirstApplicable
impl Unpin for FirstApplicable
impl UnsafeUnpin for FirstApplicable
impl UnwindSafe for FirstApplicable
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