icu_capi/
common.rs

1// This file is part of ICU4X. For terms of use, please see the file
2// called LICENSE at the top level of the ICU4X source tree
3// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4
5#[diplomat::bridge]
6pub mod ffi {
7    use alloc::boxed::Box;
8
9    #[diplomat::enum_convert(core::cmp::Ordering)]
10    #[diplomat::rust_link(core::cmp::Ordering, Enum)]
11    #[diplomat::attr(*, disable)]
12    pub enum ICU4XOrdering {
13        Less = -1,
14        Equal = 0,
15        Greater = 1,
16    }
17}