Home
last modified time | relevance | path

Searched defs:fn_traits (Results 1 – 1 of 1) sorted by relevance

/external/rust/android-crates-io/crates/icu_capi/bindings/cpp/
Ddiplomat_runtime.hpp221 template <typename Ret, typename... Args> struct fn_traits<std::function<Ret(Args...)>> { struct
222 using fn_ptr_t = Ret(Args...);
223 using function_t = std::function<fn_ptr_t>;
224 using ret = Ret;
227 struct as_ffi {
232 struct as_ffi<T, std::void_t<decltype(&T::AsFFI)>> {
237 using as_ffi_t = typename as_ffi<T>::type;
240 …ring_view_t = std::conditional_t<std::is_same_v<T, std::string_view>, capi::DiplomatStringView, T>;
243 using replace_fn_t = replace_string_view_t<as_ffi_t<T>>;
247 static T replace(replace_fn_t<T> val) { in replace()
[all …]