pub struct OptimizerRegistration {
pub name: fn() -> &'static str,
pub doc_md: fn() -> &'static str,
pub make: fn(&OptimizerParams) -> Box<dyn Optimizer>,
}Expand description
An optimizer implementation’s registration, submitted at link time via
inventory by an algorithm crate (e.g. nmbrs-optimizers).
Fields§
§name: fn() -> &'static strThe optimizer’s registry name ("nelder_mead", "cmaes", …).
doc_md: fn() -> &'static strUser-level markdown documentation (SRD-86 §5).
make: fn(&OptimizerParams) -> Box<dyn Optimizer>Factory: build the optimizer from its params.
Trait Implementations§
impl Collect for OptimizerRegistration
Auto Trait Implementations§
impl Freeze for OptimizerRegistration
impl RefUnwindSafe for OptimizerRegistration
impl Send for OptimizerRegistration
impl Sync for OptimizerRegistration
impl Unpin for OptimizerRegistration
impl UnsafeUnpin for OptimizerRegistration
impl UnwindSafe for OptimizerRegistration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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