pub struct PredictionRuleDemandV2<'a> { /* private fields */ }Expand description
Catalog-ordered demand for one V2 production rule.
Implementations§
Source§impl<'a> PredictionRuleDemandV2<'a>
impl<'a> PredictionRuleDemandV2<'a>
Sourcepub fn new(
rule_id: &'a str,
demand: PredictionFacetDemandV2,
) -> Result<Self, PredictionContractError>
pub fn new( rule_id: &'a str, demand: PredictionFacetDemandV2, ) -> Result<Self, PredictionContractError>
Construct one catalog entry. The caller supplies entries in immutable registration order; this type deliberately has no map-based form.
Sourcepub const fn demand(&self) -> PredictionFacetDemandV2
pub const fn demand(&self) -> PredictionFacetDemandV2
Bounded pre-evaluation candidate demand.
Trait Implementations§
Source§impl<'a> Clone for PredictionRuleDemandV2<'a>
impl<'a> Clone for PredictionRuleDemandV2<'a>
Source§fn clone(&self) -> PredictionRuleDemandV2<'a>
fn clone(&self) -> PredictionRuleDemandV2<'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 moreimpl<'a> Copy for PredictionRuleDemandV2<'a>
Source§impl<'a> Debug for PredictionRuleDemandV2<'a>
impl<'a> Debug for PredictionRuleDemandV2<'a>
impl<'a> Eq for PredictionRuleDemandV2<'a>
Source§impl<'a> PartialEq for PredictionRuleDemandV2<'a>
impl<'a> PartialEq for PredictionRuleDemandV2<'a>
impl<'a> StructuralPartialEq for PredictionRuleDemandV2<'a>
Auto Trait Implementations§
impl<'a> Freeze for PredictionRuleDemandV2<'a>
impl<'a> RefUnwindSafe for PredictionRuleDemandV2<'a>
impl<'a> Send for PredictionRuleDemandV2<'a>
impl<'a> Sync for PredictionRuleDemandV2<'a>
impl<'a> Unpin for PredictionRuleDemandV2<'a>
impl<'a> UnsafeUnpin for PredictionRuleDemandV2<'a>
impl<'a> UnwindSafe for PredictionRuleDemandV2<'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