pub struct ModelConverter { /* private fields */ }Expand description
Model converter
Implementations§
Source§impl ModelConverter
impl ModelConverter
pub fn new() -> Self
pub fn initialize(&mut self) -> Result<(), MLError>
Sourcepub fn register_pipeline(&mut self, name: &str, pipeline: ConversionPipeline)
pub fn register_pipeline(&mut self, name: &str, pipeline: ConversionPipeline)
Register a conversion pipeline under the given name.
Sourcepub fn get_pipeline(&self, name: &str) -> Option<&ConversionPipeline>
pub fn get_pipeline(&self, name: &str) -> Option<&ConversionPipeline>
Get a registered conversion pipeline by name.
Sourcepub fn list_pipelines(&self) -> Vec<String>
pub fn list_pipelines(&self) -> Vec<String>
List the names of all registered conversion pipelines.
Sourcepub fn register_optimization_strategy(
&mut self,
name: &str,
strategy: OptimizationStrategy,
)
pub fn register_optimization_strategy( &mut self, name: &str, strategy: OptimizationStrategy, )
Register an optimization strategy under the given name.
Sourcepub fn get_optimization_strategy(
&self,
name: &str,
) -> Option<&OptimizationStrategy>
pub fn get_optimization_strategy( &self, name: &str, ) -> Option<&OptimizationStrategy>
Get a registered optimization strategy by name.
Sourcepub fn list_optimization_strategies(&self) -> Vec<String>
pub fn list_optimization_strategies(&self) -> Vec<String>
List the names of all registered optimization strategies.
Auto Trait Implementations§
impl Freeze for ModelConverter
impl RefUnwindSafe for ModelConverter
impl Send for ModelConverter
impl Sync for ModelConverter
impl Unpin for ModelConverter
impl UnsafeUnpin for ModelConverter
impl UnwindSafe for ModelConverter
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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