Struct machinery_api::foundation::UnicodeApi[][src]

#[repr(C)]
pub struct UnicodeApi {
Show 16 fields pub is_valid: Option<unsafe extern "C" fn(utf8: *const c_char) -> bool>, pub truncate: Option<unsafe extern "C" fn(utf8: *mut c_char)>, pub utf8_encode: Option<unsafe extern "C" fn(utf8: *mut c_char, codepoint: u32) -> *mut c_char>, pub utf8_decode: Option<unsafe extern "C" fn(utf8: *mut *const c_char) -> u32>, pub utf8_num_codepoints: Option<unsafe extern "C" fn(utf8: *const c_char) -> u32>, pub utf8_decode_n: Option<unsafe extern "C" fn(codepoints: *mut u32, n: u32, utf8: *const c_char) -> u32>, pub utf8_to_utf32: Option<unsafe extern "C" fn(utf8: *const c_char, ta: *mut TempAllocatorI) -> *mut u32>, pub utf8_to_utf32_n: Option<unsafe extern "C" fn(utf8: *const c_char, n: u32, ta: *mut TempAllocatorI) -> *mut u32>, pub utf32_to_utf8: Option<unsafe extern "C" fn(utf32: *const u32, ta: *mut TempAllocatorI) -> *mut c_char>, pub utf32_to_utf8_n: Option<unsafe extern "C" fn(utf32: *const u32, n: u32, ta: *mut TempAllocatorI) -> *mut c_char>, 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 c_char, ta: *mut TempAllocatorI) -> *mut u16>, pub utf8_to_utf16_n: Option<unsafe extern "C" fn(utf8: *const c_char, n: u32, ta: *mut TempAllocatorI) -> *mut u16>, pub utf16_to_utf8: Option<unsafe extern "C" fn(utf16: *const u16, ta: *mut TempAllocatorI) -> *mut c_char>, pub utf16_to_utf8_n: Option<unsafe extern "C" fn(utf16: *const u16, n: u32, ta: *mut TempAllocatorI) -> *mut c_char>,
}

Fields

is_valid: Option<unsafe extern "C" fn(utf8: *const c_char) -> bool>truncate: Option<unsafe extern "C" fn(utf8: *mut c_char)>utf8_encode: Option<unsafe extern "C" fn(utf8: *mut c_char, codepoint: u32) -> *mut c_char>utf8_decode: Option<unsafe extern "C" fn(utf8: *mut *const c_char) -> u32>utf8_num_codepoints: Option<unsafe extern "C" fn(utf8: *const c_char) -> u32>utf8_decode_n: Option<unsafe extern "C" fn(codepoints: *mut u32, n: u32, utf8: *const c_char) -> u32>utf8_to_utf32: Option<unsafe extern "C" fn(utf8: *const c_char, ta: *mut TempAllocatorI) -> *mut u32>utf8_to_utf32_n: Option<unsafe extern "C" fn(utf8: *const c_char, n: u32, ta: *mut TempAllocatorI) -> *mut u32>utf32_to_utf8: Option<unsafe extern "C" fn(utf32: *const u32, ta: *mut TempAllocatorI) -> *mut c_char>utf32_to_utf8_n: Option<unsafe extern "C" fn(utf32: *const u32, n: u32, ta: *mut TempAllocatorI) -> *mut c_char>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 c_char, ta: *mut TempAllocatorI) -> *mut u16>utf8_to_utf16_n: Option<unsafe extern "C" fn(utf8: *const c_char, n: u32, ta: *mut TempAllocatorI) -> *mut u16>utf16_to_utf8: Option<unsafe extern "C" fn(utf16: *const u16, ta: *mut TempAllocatorI) -> *mut c_char>utf16_to_utf8_n: Option<unsafe extern "C" fn(utf16: *const u16, n: u32, ta: *mut TempAllocatorI) -> *mut c_char>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.