pm_encoding_changed_callback_t

Type Alias pm_encoding_changed_callback_t 

Source
pub type pm_encoding_changed_callback_t = Option<unsafe extern "C" fn(parser: *mut pm_parser_t)>;
Expand description

When the encoding that is being used to parse the source is changed by prism, we provide the ability here to call out to a user-defined function.

Aliased Type§

pub enum pm_encoding_changed_callback_t {
    None,
    Some(unsafe extern "C" fn(*mut pm_parser)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut pm_parser))

Some value of type T.