Struct mariadb_sys::my_collation_handler_st
source · #[repr(C)]pub struct my_collation_handler_st {Show 16 fields
pub init: Option<unsafe extern "C" fn(arg1: *mut charset_info_st, arg2: *mut MY_CHARSET_LOADER) -> my_bool>,
pub strnncoll: Option<unsafe extern "C" fn(arg1: *const charset_info_st, arg2: *const uchar, arg3: usize, arg4: *const uchar, arg5: usize, arg6: my_bool) -> c_int>,
pub strnncollsp: Option<unsafe extern "C" fn(arg1: *const charset_info_st, arg2: *const uchar, arg3: usize, arg4: *const uchar, arg5: usize) -> c_int>,
pub strnncollsp_nchars: Option<unsafe extern "C" fn(arg1: *const charset_info_st, str1: *const uchar, len1: usize, str2: *const uchar, len2: usize, nchars: usize, flags: uint) -> c_int>,
pub strnxfrm: Option<unsafe extern "C" fn(arg1: *const charset_info_st, dst: *mut uchar, dstlen: usize, nweights: uint, src: *const uchar, srclen: usize, flags: uint) -> usize>,
pub strnxfrmlen: Option<unsafe extern "C" fn(arg1: *const charset_info_st, arg2: usize) -> usize>,
pub like_range: Option<unsafe extern "C" fn(arg1: *const charset_info_st, s: *const c_char, s_length: usize, w_prefix: pchar, w_one: pchar, w_many: pchar, res_length: usize, min_str: *mut c_char, max_str: *mut c_char, min_len: *mut usize, max_len: *mut usize) -> my_bool>,
pub wildcmp: Option<unsafe extern "C" fn(arg1: *const charset_info_st, str_: *const c_char, str_end: *const c_char, wildstr: *const c_char, wildend: *const c_char, escape: c_int, w_one: c_int, w_many: c_int) -> c_int>,
pub strcasecmp: Option<unsafe extern "C" fn(arg1: *const charset_info_st, arg2: *const c_char, arg3: *const c_char) -> c_int>,
pub instr: Option<unsafe extern "C" fn(arg1: *const charset_info_st, b: *const c_char, b_length: usize, s: *const c_char, s_length: usize, match_: *mut my_match_t, nmatch: uint) -> uint>,
pub hash_sort: Option<unsafe extern "C" fn(cs: *const charset_info_st, key: *const uchar, len: usize, nr1: *mut ulong, nr2: *mut ulong)>,
pub propagate: Option<unsafe extern "C" fn(cs: *const charset_info_st, str_: *const uchar, len: usize) -> my_bool>,
pub min_str: Option<unsafe extern "C" fn(cs: *const charset_info_st, dst: *mut uchar, dstlen: usize, nchars: usize) -> usize>,
pub max_str: Option<unsafe extern "C" fn(cs: *const charset_info_st, dst: *mut uchar, dstlen: usize, nchars: usize) -> usize>,
pub get_id: Option<unsafe extern "C" fn(cs: *const charset_info_st, type_: my_collation_id_type_t) -> uint>,
pub get_collation_name: Option<unsafe extern "C" fn(cs: *const charset_info_st, mode: my_collation_name_mode_t) -> LEX_CSTRING>,
}
Fields§
§init: Option<unsafe extern "C" fn(arg1: *mut charset_info_st, arg2: *mut MY_CHARSET_LOADER) -> my_bool>
§strnncoll: Option<unsafe extern "C" fn(arg1: *const charset_info_st, arg2: *const uchar, arg3: usize, arg4: *const uchar, arg5: usize, arg6: my_bool) -> c_int>
§strnncollsp: Option<unsafe extern "C" fn(arg1: *const charset_info_st, arg2: *const uchar, arg3: usize, arg4: *const uchar, arg5: usize) -> c_int>
§strnncollsp_nchars: Option<unsafe extern "C" fn(arg1: *const charset_info_st, str1: *const uchar, len1: usize, str2: *const uchar, len2: usize, nchars: usize, flags: uint) -> c_int>
§strnxfrm: Option<unsafe extern "C" fn(arg1: *const charset_info_st, dst: *mut uchar, dstlen: usize, nweights: uint, src: *const uchar, srclen: usize, flags: uint) -> usize>
§strnxfrmlen: Option<unsafe extern "C" fn(arg1: *const charset_info_st, arg2: usize) -> usize>
§like_range: Option<unsafe extern "C" fn(arg1: *const charset_info_st, s: *const c_char, s_length: usize, w_prefix: pchar, w_one: pchar, w_many: pchar, res_length: usize, min_str: *mut c_char, max_str: *mut c_char, min_len: *mut usize, max_len: *mut usize) -> my_bool>
§wildcmp: Option<unsafe extern "C" fn(arg1: *const charset_info_st, str_: *const c_char, str_end: *const c_char, wildstr: *const c_char, wildend: *const c_char, escape: c_int, w_one: c_int, w_many: c_int) -> c_int>
§strcasecmp: Option<unsafe extern "C" fn(arg1: *const charset_info_st, arg2: *const c_char, arg3: *const c_char) -> c_int>
§instr: Option<unsafe extern "C" fn(arg1: *const charset_info_st, b: *const c_char, b_length: usize, s: *const c_char, s_length: usize, match_: *mut my_match_t, nmatch: uint) -> uint>
§hash_sort: Option<unsafe extern "C" fn(cs: *const charset_info_st, key: *const uchar, len: usize, nr1: *mut ulong, nr2: *mut ulong)>
§propagate: Option<unsafe extern "C" fn(cs: *const charset_info_st, str_: *const uchar, len: usize) -> my_bool>
§min_str: Option<unsafe extern "C" fn(cs: *const charset_info_st, dst: *mut uchar, dstlen: usize, nchars: usize) -> usize>
§max_str: Option<unsafe extern "C" fn(cs: *const charset_info_st, dst: *mut uchar, dstlen: usize, nchars: usize) -> usize>
§get_id: Option<unsafe extern "C" fn(cs: *const charset_info_st, type_: my_collation_id_type_t) -> uint>
§get_collation_name: Option<unsafe extern "C" fn(cs: *const charset_info_st, mode: my_collation_name_mode_t) -> LEX_CSTRING>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for my_collation_handler_st
impl Send for my_collation_handler_st
impl Sync for my_collation_handler_st
impl Unpin for my_collation_handler_st
impl UnwindSafe for my_collation_handler_st
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more