Struct cadical::Timeout

source ·
pub struct Timeout {
    pub started: Instant,
    pub timeout: f32,
}
Expand description

Callbacks implementing a simple timeout.

Fields§

§started: Instant§timeout: f32

Implementations§

Creates a new timeout structure with the given timeout value.

Trait Implementations§

Called when the solve method is called.
Called by the solver periodically to check if it should terminate.
Returns the maximum length of clauses to be passed to learn. This methods will be called only once when set_callbacks is called. Read more
Called by the solver when a new derived clause is learnt.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.