MCPcopy Create free account
hub / github.com/SSheldon/rust-objc / encode

Method encode

src/test_utils.rs:53–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52unsafe impl Encode for CustomStruct {
53 fn encode() -> Encoding {
54 let mut code = "{CustomStruct=".to_owned();
55 for _ in 0..4 {
56 code.push_str(u64::encode().as_str());
57 }
58 code.push_str("}");
59 unsafe {
60 Encoding::from_str(&code)
61 }
62 }
63}
64
65pub fn custom_class() -> &'static Class {

Callers

nothing calls this directly

Calls 2

from_strFunction · 0.85
as_strMethod · 0.80

Tested by

no test coverage detected