Types that have an Objective-C type encoding. Unsafe because Objective-C will make assumptions about the type (like its size and alignment) from its encoding, so the implementer must verify that the encoding is accurate.
| 114 | /// size and alignment) from its encoding, so the implementer must verify that |
| 115 | /// the encoding is accurate. |
| 116 | pub unsafe trait Encode { |
| 117 | /// Returns the Objective-C type encoding for Self. |
| 118 | fn encode() -> Encoding; |
| 119 | } |
| 120 | |
| 121 | macro_rules! encode_impls { |
| 122 | ($($t:ty : $s:expr,)*) => ($( |
nothing calls this directly
no outgoing calls
no test coverage detected