igraph_interruption_handler_t

Type Alias igraph_interruption_handler_t 

Source
pub type igraph_interruption_handler_t = Option<unsafe extern "C" fn() -> igraph_bool_t>;
Expand description

\typedef igraph_interruption_handler_t

This is the type of the interruption handler functions.

\return false if the calculation should go on, true if the calculation should be interrupted.

Aliased Type§

pub enum igraph_interruption_handler_t {
    None,
    Some(unsafe extern "C" fn() -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn() -> bool)

Some value of type T.