[][src]Struct tm_rs::ffi::tm_unicode_api

#[repr(C)]pub struct tm_unicode_api {
    pub utf8_encode: Option<unsafe extern "C" fn(*mut u8, u32) -> *mut u8>,
    pub utf8_decode: Option<unsafe extern "C" fn(*mut *const u8) -> u32>,
    pub utf8_num_codepoints: Option<unsafe extern "C" fn(*const u8) -> u32>,
    pub utf8_decode_n: Option<unsafe extern "C" fn(*mut u32, u32, *mut *const u8) -> u32>,
    pub utf8_to_utf32: Option<unsafe extern "C" fn(*const u8, *mut tm_temp_allocator_i) -> *mut u32>,
    pub utf8_to_utf32_n: Option<unsafe extern "C" fn(*const u8, u32, *mut tm_temp_allocator_i) -> *mut u32>,
    pub utf32_to_utf8: Option<unsafe extern "C" fn(*const u32, *mut tm_temp_allocator_i) -> *mut u8>,
    pub utf32_to_utf8_n: Option<unsafe extern "C" fn(*const u32, u32, *mut tm_temp_allocator_i) -> *mut u8>,
    pub utf16_encode: Option<unsafe extern "C" fn(*mut u16, u32) -> *mut u16>,
    pub utf16_decode: Option<unsafe extern "C" fn(*mut *const u16) -> u32>,
    pub utf8_to_utf16: Option<unsafe extern "C" fn(*const u8, *mut tm_temp_allocator_i) -> *mut u16>,
    pub utf8_to_utf16_n: Option<unsafe extern "C" fn(*const u8, u32, *mut tm_temp_allocator_i) -> *mut u16>,
    pub utf16_to_utf8: Option<unsafe extern "C" fn(*const u16, *mut tm_temp_allocator_i) -> *mut u8>,
    pub utf16_to_utf8_n: Option<unsafe extern "C" fn(*const u16, u32, *mut tm_temp_allocator_i) -> *mut u8>,
}

Fields

utf8_encode: Option<unsafe extern "C" fn(*mut u8, u32) -> *mut u8>utf8_decode: Option<unsafe extern "C" fn(*mut *const u8) -> u32>utf8_num_codepoints: Option<unsafe extern "C" fn(*const u8) -> u32>utf8_decode_n: Option<unsafe extern "C" fn(*mut u32, u32, *mut *const u8) -> u32>utf8_to_utf32: Option<unsafe extern "C" fn(*const u8, *mut tm_temp_allocator_i) -> *mut u32>utf8_to_utf32_n: Option<unsafe extern "C" fn(*const u8, u32, *mut tm_temp_allocator_i) -> *mut u32>utf32_to_utf8: Option<unsafe extern "C" fn(*const u32, *mut tm_temp_allocator_i) -> *mut u8>utf32_to_utf8_n: Option<unsafe extern "C" fn(*const u32, u32, *mut tm_temp_allocator_i) -> *mut u8>utf16_encode: Option<unsafe extern "C" fn(*mut u16, u32) -> *mut u16>utf16_decode: Option<unsafe extern "C" fn(*mut *const u16) -> u32>utf8_to_utf16: Option<unsafe extern "C" fn(*const u8, *mut tm_temp_allocator_i) -> *mut u16>utf8_to_utf16_n: Option<unsafe extern "C" fn(*const u8, u32, *mut tm_temp_allocator_i) -> *mut u16>utf16_to_utf8: Option<unsafe extern "C" fn(*const u16, *mut tm_temp_allocator_i) -> *mut u8>utf16_to_utf8_n: Option<unsafe extern "C" fn(*const u16, u32, *mut tm_temp_allocator_i) -> *mut u8>

Trait Implementations

impl Clone for tm_unicode_api[src]

impl Copy for tm_unicode_api[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> CloneAny for T where
    T: Clone + Any
[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.