From 1f7f189b84163e87f67f297cc2ab6e2a7e23d15f Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Sat, 2 Apr 2022 22:32:02 +0200 Subject: [PATCH] TMP --- objc2-encode/src/encode.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/objc2-encode/src/encode.rs b/objc2-encode/src/encode.rs index bec6a89ad..352080131 100644 --- a/objc2-encode/src/encode.rs +++ b/objc2-encode/src/encode.rs @@ -68,6 +68,12 @@ use crate::Encoding; pub unsafe trait Encode { /// The Objective-C type-encoding for this type. const ENCODING: Encoding<'static>; + + #[doc(hidden)] + const __ENCODING_ARR: [u8; 200] = Self::ENCODING.get_str_array::<200>(); + + /// TODO + const ENCODING_CSTR: *const u8 = Self::__ENCODING_ARR.as_ptr(); } /// Types whoose references has an Objective-C type-encoding.