Type Alias ModeResult

Source
pub type ModeResult = Option<unsafe extern "C" fn(sw: *mut Mode, menu_retv: c_int, input: *mut *mut c_char, selected_line: c_uint) -> c_int>;
Expand description

Process the result of the user selection.

Returns the next action to take.

  • menu_retv: The return value
  • input: The input string
  • selected_line: The selected line

Aliased Type§

pub enum ModeResult {
    None,
    Some(unsafe extern "C" fn(*mut Mode, i32, *mut *mut i8, u32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut Mode, i32, *mut *mut i8, u32) -> i32)

Some value of type T.