()
| 51 | |
| 52 | unsafe 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 | |
| 65 | pub fn custom_class() -> &'static Class { |