Enum argmin::core::ObserverMode [−][src]
pub enum ObserverMode { Never, Always, Every(u64), NewBest, }
Expand description
This is used to indicate how often the observer will observe the status. Never
deactivates
the observer, Always
and Every(i)
will call the observer in every or every ith iteration,
respectively. NewBest
will call the observer only, if a new best solution is found.
Variants
Never call the observer
Call observer in every iteration
Call observer every N iterations
Tuple Fields of Every
0: u64
Call observer when new best is found
Trait Implementations
The default is Always
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ObserverMode
impl Send for ObserverMode
impl Sync for ObserverMode
impl Unpin for ObserverMode
impl UnwindSafe for ObserverMode
Blanket Implementations
Mutably borrows from an owned value. Read more