pm_options_shebang_callback_t

Type Alias pm_options_shebang_callback_t 

Source
pub type pm_options_shebang_callback_t = Option<unsafe extern "C" fn(options: *mut pm_options, source: *const u8, length: usize, shebang_callback_data: *mut c_void)>;
Expand description

The callback called when additional switches are found in a shebang comment that need to be processed by the runtime.

@param options The options struct that may be updated by this callback. Certain fields will be checked for changes, specifically encoding, command_line, and frozen_string_literal. @param source The source of the shebang comment. @param length The length of the source. @param shebang_callback_data Any additional data that should be passed along to the callback.

Aliased Type§

pub enum pm_options_shebang_callback_t {
    None,
    Some(unsafe extern "C" fn(*mut pm_options, *const u8, usize, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut pm_options, *const u8, usize, *mut c_void))

Some value of type T.