[][src]Crate rust_icu_common

Commonly used functionality adapters.

At the moment, this crate contains the declaration of various errors

Macros

buffered_string_method_with_retry

Generates a method to wrap ICU4C uloc methods that require a resizable output string buffer.

format_ustring_for_type

There is a slew of near-identical method calls which differ in the type of the input argument and the name of the function to invoke.

generalized_fallible_getter

Expands into a getter method that forwards all its arguments and returns a fallible value which is the same as the value returned by the underlying function.

generalized_fallible_setter

Expands into a setter methods that forwards all its arguments between []'s and returns a Result<(), common::Error>.

simple_drop_impl

type_name is the type to implement drop for. impl_function_name is the name of the function that implements memory deallocation. It is assumed that the type has an internal representation wrapped in a std::ptr::NonNull.

Structs

CStringVec

Used to simulate an array of C-style strings.

Enums

Error

Represents a Unicode error, resulting from operations of low-level ICU libraries.

Statics

NO_PARSE_ERROR

A zero-value parse error, used to initialize types that get passed into FFI code.

Functions

parse_ok

Converts a parse error to a Result.