Struct argmin::core::Observer[][src]

pub struct Observer<O> { /* fields omitted */ }
Expand description

Container for observers which acts just like a single Observer by implementing Observe on it.

Implementations

Constructor

Push another Observe to the observer field

Returns true if observers is empty

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

By implementing Observe for Observer we basically allow a set of Observers to be used just like a single Observer.

Initial observation This is called after the initialization in an Executor and gets the name of the solver as string and a ArgminKV which includes some solver-specific information.

This is called after every iteration and gets the current state of the solver as well as a KV which can include solver-specific information This respects the ObserverMode: Every Observer is only called as often as specified.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.