ModeTokenMatch

Type Alias ModeTokenMatch 

Source
pub type ModeTokenMatch = Option<unsafe extern "C" fn(sw: *const Mode, tokens: *mut *mut RofiIntMatcher, index: c_uint) -> c_int>;
Expand description

Token match for the matching algorithm.

Returns 1 when it matches, 0 if not.

  • tokens: List of (input) tokens to match.
  • input: The entry to match against.
  • case_sensitive: Whether case is significant.
  • index: The current selected index.
  • data: User data.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.