pub struct EvalContext<'a> {
pub tags: &'a [Tag],
pub metadata: &'a BTreeMap<String, String>,
}Expand description
(tags, metadata) context passed to Predicate::evaluate.
Decoupled from CapabilitySet so the predicate evaluator works
against the substrate’s pre-Phase-A.5 capability shape AND the
post-migration shape (tags: HashSet<Tag>) without churn.
Fields§
Tag set against which axis predicates evaluate.
metadata: &'a BTreeMap<String, String>Key-value metadata against which metadata predicates evaluate.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for EvalContext<'a>
impl<'a> Clone for EvalContext<'a>
Source§fn clone(&self) -> EvalContext<'a>
fn clone(&self) -> EvalContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EvalContext<'a>
impl<'a> Debug for EvalContext<'a>
impl<'a> Copy for EvalContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for EvalContext<'a>
impl<'a> RefUnwindSafe for EvalContext<'a>
impl<'a> Send for EvalContext<'a>
impl<'a> Sync for EvalContext<'a>
impl<'a> Unpin for EvalContext<'a>
impl<'a> UnsafeUnpin for EvalContext<'a>
impl<'a> UnwindSafe for EvalContext<'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