#[repr(C)]pub struct tm_unicode_api {Show 14 fields
pub utf8_encode: Option<unsafe extern "C" fn(utf8: *mut u8, codepoint: u32) -> *mut u8>,
pub utf8_decode: Option<unsafe extern "C" fn(utf8: *mut *const u8) -> u32>,
pub utf8_num_codepoints: Option<unsafe extern "C" fn(utf8: *const u8) -> u32>,
pub utf8_decode_n: Option<unsafe extern "C" fn(codepoints: *mut u32, n: u32, utf8: *mut *const u8) -> u32>,
pub utf8_to_utf32: Option<unsafe extern "C" fn(utf8: *const u8, ta: *mut tm_temp_allocator_i) -> *mut u32>,
pub utf8_to_utf32_n: Option<unsafe extern "C" fn(utf8: *const u8, n: u32, ta: *mut tm_temp_allocator_i) -> *mut u32>,
pub utf32_to_utf8: Option<unsafe extern "C" fn(utf32: *const u32, ta: *mut tm_temp_allocator_i) -> *mut u8>,
pub utf32_to_utf8_n: Option<unsafe extern "C" fn(utf32: *const u32, n: u32, ta: *mut tm_temp_allocator_i) -> *mut u8>,
pub utf16_encode: Option<unsafe extern "C" fn(utf16: *mut u16, codepoint: u32) -> *mut u16>,
pub utf16_decode: Option<unsafe extern "C" fn(utf16: *mut *const u16) -> u32>,
pub utf8_to_utf16: Option<unsafe extern "C" fn(utf8: *const u8, ta: *mut tm_temp_allocator_i) -> *mut u16>,
pub utf8_to_utf16_n: Option<unsafe extern "C" fn(utf8: *const u8, n: u32, ta: *mut tm_temp_allocator_i) -> *mut u16>,
pub utf16_to_utf8: Option<unsafe extern "C" fn(utf16: *const u16, ta: *mut tm_temp_allocator_i) -> *mut u8>,
pub utf16_to_utf8_n: Option<unsafe extern "C" fn(utf16: *const u16, n: u32, ta: *mut tm_temp_allocator_i) -> *mut u8>,
}Fields§
§utf8_encode: Option<unsafe extern "C" fn(utf8: *mut u8, codepoint: u32) -> *mut u8>§utf8_decode: Option<unsafe extern "C" fn(utf8: *mut *const u8) -> u32>§utf8_num_codepoints: Option<unsafe extern "C" fn(utf8: *const u8) -> u32>§utf8_decode_n: Option<unsafe extern "C" fn(codepoints: *mut u32, n: u32, utf8: *mut *const u8) -> u32>§utf8_to_utf32: Option<unsafe extern "C" fn(utf8: *const u8, ta: *mut tm_temp_allocator_i) -> *mut u32>§utf8_to_utf32_n: Option<unsafe extern "C" fn(utf8: *const u8, n: u32, ta: *mut tm_temp_allocator_i) -> *mut u32>§utf32_to_utf8: Option<unsafe extern "C" fn(utf32: *const u32, ta: *mut tm_temp_allocator_i) -> *mut u8>§utf32_to_utf8_n: Option<unsafe extern "C" fn(utf32: *const u32, n: u32, ta: *mut tm_temp_allocator_i) -> *mut u8>§utf16_encode: Option<unsafe extern "C" fn(utf16: *mut u16, codepoint: u32) -> *mut u16>§utf16_decode: Option<unsafe extern "C" fn(utf16: *mut *const u16) -> u32>§utf8_to_utf16: Option<unsafe extern "C" fn(utf8: *const u8, ta: *mut tm_temp_allocator_i) -> *mut u16>§utf8_to_utf16_n: Option<unsafe extern "C" fn(utf8: *const u8, n: u32, ta: *mut tm_temp_allocator_i) -> *mut u16>§utf16_to_utf8: Option<unsafe extern "C" fn(utf16: *const u16, ta: *mut tm_temp_allocator_i) -> *mut u8>§utf16_to_utf8_n: Option<unsafe extern "C" fn(utf16: *const u16, n: u32, ta: *mut tm_temp_allocator_i) -> *mut u8>Trait Implementations§
Source§impl Clone for tm_unicode_api
impl Clone for tm_unicode_api
Source§fn clone(&self) -> tm_unicode_api
fn clone(&self) -> tm_unicode_api
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for tm_unicode_api
Auto Trait Implementations§
impl Freeze for tm_unicode_api
impl RefUnwindSafe for tm_unicode_api
impl Send for tm_unicode_api
impl Sync for tm_unicode_api
impl Unpin for tm_unicode_api
impl UnwindSafe for tm_unicode_api
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