pub struct GateProvider { /* private fields */ }Expand description
Gate-based optimization provider
Provides access to domain packs through the solver gate architecture. Each solve returns a complete result including the proposed plan, solver reports, invariant checks, and promotion gate decision.
Implementations§
Source§impl GateProvider
impl GateProvider
Sourcepub fn with_registry(registry: Arc<PackRegistry>) -> Self
pub fn with_registry(registry: Arc<PackRegistry>) -> Self
Create with custom registry
Sourcepub fn registry(&self) -> &PackRegistry
pub fn registry(&self) -> &PackRegistry
Get the underlying registry
Sourcepub fn list_packs(&self) -> Vec<&str>
pub fn list_packs(&self) -> Vec<&str>
List available packs
Sourcepub fn solve(
&self,
pack_name: &str,
spec: &ProblemSpec,
) -> Result<GateSolveResult>
pub fn solve( &self, pack_name: &str, spec: &ProblemSpec, ) -> Result<GateSolveResult>
Solve a problem through the gate
This method:
- Validates inputs against the pack schema
- Solves the problem using the pack’s solver
- Checks all invariants
- Evaluates the promotion gate
Returns a complete result including all artifacts.
Trait Implementations§
Source§impl Clone for GateProvider
impl Clone for GateProvider
Source§fn clone(&self) -> GateProvider
fn clone(&self) -> GateProvider
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 Debug for GateProvider
impl Debug for GateProvider
Auto Trait Implementations§
impl Freeze for GateProvider
impl !RefUnwindSafe for GateProvider
impl Send for GateProvider
impl Sync for GateProvider
impl Unpin for GateProvider
impl UnsafeUnpin for GateProvider
impl !UnwindSafe for GateProvider
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