MCPcopy Index your code
hub / github.com/SSheldon/rust-objc / Encode

Interface Encode

src/encode.rs:116–119  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

114/// size and alignment) from its encoding, so the implementer must verify that
115/// the encoding is accurate.
116pub unsafe trait Encode {
117 /// Returns the Objective-C type encoding for Self.
118 fn encode() -> Encoding;
119}
120
121macro_rules! encode_impls {
122 ($($t:ty : $s:expr,)*) => ($(

Callers

nothing calls this directly

Implementers 2

encode.rssrc/encode.rs
test_utils.rssrc/test_utils.rs

Calls

no outgoing calls

Tested by

no test coverage detected