[][src]Struct tm_sys::ffi::tm_unicode_api

#[repr(C)]pub struct tm_unicode_api {
    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

impl Clone for tm_unicode_api[src]

impl Copy for tm_unicode_api[src]

impl Debug for tm_unicode_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.