pub struct RuntimeProviderRegistry<S> { /* private fields */ }Expand description
Frozen schema-order registry. It does not contain a mutable host lookup; plans store immutable declaration indexes and cursor dispatch rebuilds no schema state at solve time.
Implementations§
Source§impl<S: 'static> RuntimeProviderRegistry<S>
impl<S: 'static> RuntimeProviderRegistry<S>
pub fn new( groups: Vec<RuntimeScalarGroupProviderBinding<S>>, repairs: Vec<RuntimeConflictRepairProviderBinding<S>>, error_boundary: Arc<dyn RuntimeHostProviderErrorBoundary>, ) -> Result<Self, String>
pub fn is_empty(&self) -> bool
pub fn groups(&self) -> &[RuntimeScalarGroupProviderBinding<S>]
pub fn repairs(&self) -> &[RuntimeConflictRepairProviderBinding<S>]
pub fn static_groups(&self) -> &[StaticScalarGroupProviderBinding<S>]
pub fn static_repairs(&self) -> &[StaticConflictRepairProviderBinding<S>]
pub fn group_indices(&self, group_name: &str) -> Vec<usize>
Sourcepub fn declares_constraint(
&self,
handle: RuntimeProviderHandle,
constraint: &str,
) -> bool
pub fn declares_constraint( &self, handle: RuntimeProviderHandle, constraint: &str, ) -> bool
Whether one frozen repair source declares a configured constraint.
pub fn declares_any_constraint( &self, handle: RuntimeProviderHandle, constraints: &[String], ) -> bool
Sourcepub fn pull_callback_raw(
&self,
handle: RuntimeProviderHandle,
solution: &S,
limits: RuntimeProviderLimits,
) -> Vec<RawProviderCandidate>
pub fn pull_callback_raw( &self, handle: RuntimeProviderHandle, solution: &S, limits: RuntimeProviderLimits, ) -> Vec<RawProviderCandidate>
Pulls exactly one source without normalizing or reordering its result.
Sourcepub fn normalize_or_raise(
&self,
solution: &S,
raw: Vec<RawProviderCandidate>,
allowed_slots: &[RuntimeScalarSlotId],
state: &mut ProviderNormalizationState,
reasons: &mut ProviderReasonArena,
) -> Vec<ResolvedProviderCandidate<S>>
pub fn normalize_or_raise( &self, solution: &S, raw: Vec<RawProviderCandidate>, allowed_slots: &[RuntimeScalarSlotId], state: &mut ProviderNormalizationState, reasons: &mut ProviderReasonArena, ) -> Vec<ResolvedProviderCandidate<S>>
Resolves one raw result in the caller-owned deduplication scope.
Callback panics propagate from Self::pull_callback_raw; only structured core
normalization failures cross the host error boundary here.
Trait Implementations§
Source§impl<S> Clone for RuntimeProviderRegistry<S>
impl<S> Clone for RuntimeProviderRegistry<S>
Source§impl<S> Debug for RuntimeProviderRegistry<S>
impl<S> Debug for RuntimeProviderRegistry<S>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for RuntimeProviderRegistry<S>
impl<S> !UnwindSafe for RuntimeProviderRegistry<S>
impl<S> Freeze for RuntimeProviderRegistry<S>
impl<S> Send for RuntimeProviderRegistry<S>
impl<S> Sync for RuntimeProviderRegistry<S>
impl<S> Unpin for RuntimeProviderRegistry<S>
impl<S> UnsafeUnpin for RuntimeProviderRegistry<S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more