Type Alias OnigEncodingType

Source
pub type OnigEncodingType = OnigEncodingTypeST;

Aliased Type§

struct OnigEncodingType {
Show 22 fields pub mbc_enc_len: Option<unsafe extern "C" fn(_: *const u8) -> i32>, pub name: *const i8, pub max_enc_len: i32, pub min_enc_len: i32, pub is_mbc_newline: Option<unsafe extern "C" fn(_: *const u8, _: *const u8) -> i32>, pub mbc_to_code: Option<unsafe extern "C" fn(_: *const u8, _: *const u8) -> u32>, pub code_to_mbclen: Option<unsafe extern "C" fn(_: u32) -> i32>, pub code_to_mbc: Option<unsafe extern "C" fn(_: u32, _: *mut u8) -> i32>, pub mbc_case_fold: Option<unsafe extern "C" fn(_: u32, _: *mut *const u8, _: *const u8, _: *mut u8) -> i32>, pub apply_all_case_fold: Option<unsafe extern "C" fn(_: u32, _: Option<unsafe extern "C" fn(_: u32, _: *mut u32, _: i32, _: *mut c_void) -> i32>, _: *mut c_void) -> i32>, pub get_case_fold_codes_by_str: Option<unsafe extern "C" fn(_: u32, _: *const u8, _: *const u8, _: *mut OnigCaseFoldCodeItem) -> i32>, pub property_name_to_ctype: Option<unsafe extern "C" fn(_: *mut OnigEncodingTypeST, _: *mut u8, _: *mut u8) -> i32>, pub is_code_ctype: Option<unsafe extern "C" fn(_: u32, _: u32) -> i32>, pub get_ctype_code_range: Option<unsafe extern "C" fn(_: u32, _: *mut u32, _: *mut *const u32) -> i32>, pub left_adjust_char_head: Option<unsafe extern "C" fn(_: *const u8, _: *const u8) -> *mut u8>, pub is_allowed_reverse_match: Option<unsafe extern "C" fn(_: *const u8, _: *const u8) -> i32>, pub init: Option<unsafe extern "C" fn() -> i32>, pub is_initialized: Option<unsafe extern "C" fn() -> i32>, pub is_valid_mbc_string: Option<unsafe extern "C" fn(_: *const u8, _: *const u8) -> i32>, pub flag: u32, pub sb_range: u32, pub index: i32,
}

Fields§

§mbc_enc_len: Option<unsafe extern "C" fn(_: *const u8) -> i32>§name: *const i8§max_enc_len: i32§min_enc_len: i32§is_mbc_newline: Option<unsafe extern "C" fn(_: *const u8, _: *const u8) -> i32>§mbc_to_code: Option<unsafe extern "C" fn(_: *const u8, _: *const u8) -> u32>§code_to_mbclen: Option<unsafe extern "C" fn(_: u32) -> i32>§code_to_mbc: Option<unsafe extern "C" fn(_: u32, _: *mut u8) -> i32>§mbc_case_fold: Option<unsafe extern "C" fn(_: u32, _: *mut *const u8, _: *const u8, _: *mut u8) -> i32>§apply_all_case_fold: Option<unsafe extern "C" fn(_: u32, _: Option<unsafe extern "C" fn(_: u32, _: *mut u32, _: i32, _: *mut c_void) -> i32>, _: *mut c_void) -> i32>§get_case_fold_codes_by_str: Option<unsafe extern "C" fn(_: u32, _: *const u8, _: *const u8, _: *mut OnigCaseFoldCodeItem) -> i32>§property_name_to_ctype: Option<unsafe extern "C" fn(_: *mut OnigEncodingTypeST, _: *mut u8, _: *mut u8) -> i32>§is_code_ctype: Option<unsafe extern "C" fn(_: u32, _: u32) -> i32>§get_ctype_code_range: Option<unsafe extern "C" fn(_: u32, _: *mut u32, _: *mut *const u32) -> i32>§left_adjust_char_head: Option<unsafe extern "C" fn(_: *const u8, _: *const u8) -> *mut u8>§is_allowed_reverse_match: Option<unsafe extern "C" fn(_: *const u8, _: *const u8) -> i32>§init: Option<unsafe extern "C" fn() -> i32>§is_initialized: Option<unsafe extern "C" fn() -> i32>§is_valid_mbc_string: Option<unsafe extern "C" fn(_: *const u8, _: *const u8) -> i32>§flag: u32§sb_range: u32§index: i32

Trait Implementations

Source§

impl Clone for OnigEncodingTypeST

Source§

fn clone(&self) -> OnigEncodingTypeST

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OnigEncodingTypeST

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for OnigEncodingTypeST

Source§

fn eq(&self, other: &OnigEncodingTypeST) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for OnigEncodingTypeST

Source§

impl Eq for OnigEncodingTypeST

Source§

impl StructuralPartialEq for OnigEncodingTypeST