Type Alias ruby_prism_sys::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§
enum pm_encoding_changed_callback_t {
None,
Some(unsafe extern "C" fn(_: *mut pm_parser)),
}