pub struct PredictionRuleAllocationV2<'a> { /* private fields */ }Expand description
Allocated V2 candidate capacity for one catalog production rule.
Implementations§
Source§impl<'a> PredictionRuleAllocationV2<'a>
impl<'a> PredictionRuleAllocationV2<'a>
Sourcepub const fn candidate_capacity(&self) -> usize
pub const fn candidate_capacity(&self) -> usize
Candidate facets this rule may construct before its summary facet.
Sourcepub const fn summary_required(&self) -> bool
pub const fn summary_required(&self) -> bool
Whether omitted candidates must be replaced by one unavailable summary.
Sourcepub const fn emitted_slots(&self) -> usize
pub const fn emitted_slots(&self) -> usize
Total emitted slots for this rule.
Trait Implementations§
Source§impl<'a> Clone for PredictionRuleAllocationV2<'a>
impl<'a> Clone for PredictionRuleAllocationV2<'a>
Source§fn clone(&self) -> PredictionRuleAllocationV2<'a>
fn clone(&self) -> PredictionRuleAllocationV2<'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 PredictionRuleAllocationV2<'a>
Source§impl<'a> Debug for PredictionRuleAllocationV2<'a>
impl<'a> Debug for PredictionRuleAllocationV2<'a>
impl<'a> Eq for PredictionRuleAllocationV2<'a>
Source§impl<'a> PartialEq for PredictionRuleAllocationV2<'a>
impl<'a> PartialEq for PredictionRuleAllocationV2<'a>
impl<'a> StructuralPartialEq for PredictionRuleAllocationV2<'a>
Auto Trait Implementations§
impl<'a> Freeze for PredictionRuleAllocationV2<'a>
impl<'a> RefUnwindSafe for PredictionRuleAllocationV2<'a>
impl<'a> Send for PredictionRuleAllocationV2<'a>
impl<'a> Sync for PredictionRuleAllocationV2<'a>
impl<'a> Unpin for PredictionRuleAllocationV2<'a>
impl<'a> UnsafeUnpin for PredictionRuleAllocationV2<'a>
impl<'a> UnwindSafe for PredictionRuleAllocationV2<'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