pub struct MatchedGrant<'a> {
pub index: usize,
pub grant: &'a ToolGrant,
pub specificity: (u8, u8, usize),
}Expand description
Borrowed match result, ordered by specificity.
Mirrors the layout of chio_kernel::MatchingGrant but is exposed
publicly so portable adapters can rank and iterate matches without
re-running the sort.
Fields§
§index: usizeIndex of this grant inside the scope’s grant vector.
grant: &'a ToolGrantThe matched grant itself.
specificity: (u8, u8, usize)Specificity tuple: (server-exact, tool-exact, constraint-count).
Trait Implementations§
Source§impl<'a> Clone for MatchedGrant<'a>
impl<'a> Clone for MatchedGrant<'a>
Source§fn clone(&self) -> MatchedGrant<'a>
fn clone(&self) -> MatchedGrant<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for MatchedGrant<'a>
impl<'a> Debug for MatchedGrant<'a>
impl<'a> Copy for MatchedGrant<'a>
Auto Trait Implementations§
impl<'a> Freeze for MatchedGrant<'a>
impl<'a> RefUnwindSafe for MatchedGrant<'a>
impl<'a> Send for MatchedGrant<'a>
impl<'a> Sync for MatchedGrant<'a>
impl<'a> Unpin for MatchedGrant<'a>
impl<'a> UnsafeUnpin for MatchedGrant<'a>
impl<'a> UnwindSafe for MatchedGrant<'a>
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