[][src]Struct kurobako_core::registry::FactoryRegistry

pub struct FactoryRegistry { /* fields omitted */ }

Factory registry.

Methods

impl FactoryRegistry[src]

pub fn new<P, S>() -> Self where
    P: 'static + ProblemRecipe,
    S: 'static + SolverRecipe
[src]

Makes a new FactoryRegistry instance.

pub fn get_or_create_problem_factory(
    &self,
    recipe: &JsonRecipe
) -> Result<Arc<Mutex<BoxProblemFactory>>>
[src]

Gets or creates a problem factory associated with the given recipe JSON.

pub fn get_or_create_solver_factory(
    &self,
    recipe: &JsonRecipe
) -> Result<Arc<Mutex<BoxSolverFactory>>>
[src]

Gets or creates a solver factory associated with the given recipe JSON.

Trait Implementations

impl Debug for FactoryRegistry[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,